Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use FieldInstruction
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
code
array of a Code
attribute. Corresponding opcodes will have a kind
of Opcode.Kind#FIELD_ACCESS
. Delivered as a CodeElement
when
traversing the elements of a CodeModel
.
Modifier and Type | Method and Description |
---|---|
public FieldRefEntry | Returns: theFieldRefEntry constant described by this instructionReturns the |
public default Utf8Entry | |
public static FieldInstruction | Returns: a field access instructionthe opcode for the specific type of field access instruction,
which must be of kind op, FieldRefEntry Opcode. a constant pool entry describing the field field)Returns a field access instruction. |
public static FieldInstruction | Returns: a field access instructionthe opcode for the specific type of field access instruction,
which must be of kind op, ClassEntry Opcode. the class holding the field owner, Utf8Entry the name of the field name, Utf8Entry the field descriptor type)Returns a field access instruction. |
public static FieldInstruction | Returns: a field access instructionthe opcode for the specific type of field access instruction,
which must be of kind op, ClassEntry Opcode. the class holding the field owner, NameAndTypeEntry the name and field descriptor of the field nameAndType)Returns a field access instruction. |
public default ClassEntry | |
public default Utf8Entry | |
public default ClassDesc | Returns: a symbolic descriptor for the type of the fieldReturns a symbolic descriptor for the type of the field. |
field | back to summary |
---|---|
public FieldRefEntry field() Returns the
|
name | back to summary |
---|---|
public default Utf8Entry name() Returns the name of the field.
|
of | back to summary |
---|---|
public static FieldInstruction of(Opcode op, FieldRefEntry field) Returns a field access instruction.
|
of | back to summary |
---|---|
public static FieldInstruction of(Opcode op, ClassEntry owner, Utf8Entry name, Utf8Entry type) Returns a field access instruction.
|
of | back to summary |
---|---|
public static FieldInstruction of(Opcode op, ClassEntry owner, NameAndTypeEntry nameAndType) Returns a field access instruction.
|
owner | back to summary |
---|---|
public default ClassEntry owner() Returns the class holding the field.
|
type | back to summary |
---|---|
public default Utf8Entry type() Returns the field descriptor of the field.
|
typeSymbol | back to summary |
---|---|
public default ClassDesc typeSymbol() Returns a symbolic descriptor for the type of the field.
|