| Modifier and Type | Class and Description |
|---|---|
| protected class | FieldAccess.
A dispatcher for implementing a non-generic read or write access on a field. |
| public static interface | FieldAccess.
Representation of a field access for which a getter and a setter can be created. |
| protected static class | FieldAccess.
A dispatcher for implementing a generic read or write access on a field. |
| Modifier and Type | Field and Description |
|---|---|
| private final int | getterOpcode
The opcode for getting a field value. |
| public static final FieldAccess | INSTANCE
The representation of field access to an instance field. |
| private final int | putterOpcode
The opcode for setting a field value. |
| public static final FieldAccess | STATIC
The representation of field access to a static field. |
| private final int | targetSizeChange
The amount of operand slots this field access operation consumes when it is applied before eventually adding new values onto the operand stack. |
| Access | Constructor and Description |
|---|---|
| private | FieldAccess(int
The opcode for setting a field value. putterOpcode, int The opcode for getting a field value. getterOpcode, StackSize The amount of operand slots this field access operation consumes when it is applied
before eventually adding new values onto the operand stack. targetSizeChange)Creates a new field access. |
| Modifier and Type | Method and Description |
|---|---|
| public static StackManipulation | Returns: A stack manipulation for reading the enumeration.The description of the enumeration. enumerationDescription)Creates an accessor to read an enumeration value. |
| public static FieldAccess. | Returns: A field access definition for the given field.The field to be accessed. fieldDescriptionCreates a field access representation for a given field. |
| public static FieldAccess. | Returns: A field access definition for the given field.The field to be accessed. fieldDescription)Creates a field access representation for a given field. |
| public static FieldAccess | |
| public static FieldAccess[] |
| getterOpcode | back to summary |
|---|---|
| private final int getterOpcode The opcode for getting a field value. | |
| INSTANCE | back to summary |
|---|---|
| public static final FieldAccess INSTANCE The representation of field access to an instance field. | |
| putterOpcode | back to summary |
|---|---|
| private final int putterOpcode The opcode for setting a field value. | |
| STATIC | back to summary |
|---|---|
| public static final FieldAccess STATIC The representation of field access to a static field. | |
| targetSizeChange | back to summary |
|---|---|
| private final int targetSizeChange The amount of operand slots this field access operation consumes when it is applied before eventually adding new values onto the operand stack. | |
| FieldAccess | back to summary |
|---|---|
| private FieldAccess(int putterOpcode, int getterOpcode, StackSize targetSizeChange) Creates a new field access.
| |
| forEnumeration | back to summary |
|---|---|
| public static StackManipulation forEnumeration(EnumerationDescription enumerationDescription) Creates an accessor to read an enumeration value.
| |
| forField | back to summary |
|---|---|
| public static FieldAccess. Creates a field access representation for a given field.
| |
| forField | back to summary |
|---|---|
| public static FieldAccess. Creates a field access representation for a given field. If the field's return type derives from its declared shape, the value is additionally casted to the generically resolved field.
| |
| valueOf | back to summary |
|---|---|
| public static FieldAccess valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FieldAccess[] values() | |
| Modifier and Type | Class and Description |
|---|---|
| private abstract class | FieldAccess.
An abstract base implementation for accessing a field value. |
| protected class | FieldAccess.
A reading field access operation. |
| protected class | FieldAccess.
A writing field access operation. |
| Modifier and Type | Field and Description |
|---|---|
| private final FieldDescription. | fieldDescription
A description of the accessed field. |
| Access | Constructor and Description |
|---|---|
| protected | AccessDispatcher(FieldDescription.
A description of the accessed field. fieldDescriptionCreates a new access dispatcher. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | read()
Implements org. |
| public StackManipulation | write()
Implements org. |
| fieldDescription | back to summary |
|---|---|
| private final FieldDescription. A description of the accessed field. | |
| AccessDispatcher | back to summary |
|---|---|
| protected AccessDispatcher(FieldDescription. Creates a new access dispatcher.
| |
| read | back to summary |
|---|---|
| public StackManipulation read() Implements org. Doc from org. Creates a getter representation for a given field.
| |
| write | back to summary |
|---|---|
| public StackManipulation write() Implements org. Doc from org. Creates a setter representation for a given field.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements org. |
| protected abstract int | Returns: The opcode for implementing the field access.Returns the opcode for implementing the field access. |
| protected abstract StackManipulation. | Returns: The size of the field access operation based on the field's size.The size of the accessed field. fieldSize)Resolves the actual size of this field access operation. |
| AbstractFieldInstruction | back to summary |
|---|---|
| private AbstractFieldInstruction() | |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements org. Doc from org. Applies the stack manipulation that is described by this instance.
| |
| getOpcode | back to summary |
|---|---|
| protected abstract int getOpcode() Returns the opcode for implementing the field access.
| |
| resolveSize | back to summary |
|---|---|
| protected abstract StackManipulation. Resolves the actual size of this field access operation.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected int | getOpcode()
Implements abstract org. |
| protected StackManipulation. | resolveSize(StackSize
The size of the accessed field. fieldSize)Implements abstract org. |
| FieldGetInstruction | back to summary |
|---|---|
| protected FieldGetInstruction() | |
| getOpcode | back to summary |
|---|---|
| protected int getOpcode() Implements abstract org. Returns the opcode for implementing the field access.
| |
| resolveSize | back to summary |
|---|---|
| protected StackManipulation. Implements abstract org. Resolves the actual size of this field access operation.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected int | getOpcode()
Implements abstract org. |
| protected StackManipulation. | resolveSize(StackSize
The size of the accessed field. fieldSize)Implements abstract org. |
| FieldPutInstruction | back to summary |
|---|---|
| protected FieldPutInstruction() | |
| getOpcode | back to summary |
|---|---|
| protected int getOpcode() Implements abstract org. Returns the opcode for implementing the field access.
| |
| resolveSize | back to summary |
|---|---|
| protected StackManipulation. Implements abstract org. Resolves the actual size of this field access operation.
| |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation | Returns: A stack manipulation representing the retrieval of a field value.Creates a getter representation for a given field. |
| public StackManipulation | Returns: A stack manipulation representing the setting of a field value.Creates a setter representation for a given field. |
| read | back to summary |
|---|---|
| public StackManipulation read() Creates a getter representation for a given field.
| |
| write | back to summary |
|---|---|
| public StackManipulation write() Creates a setter representation for a given field.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FieldAccess. | defined
An accessor for the field in its defined shape. |
| private final TypeDefinition | targetType
The resolved generic field type. |
| Access | Constructor and Description |
|---|---|
| protected | OfGenericField(TypeDefinition
The resolved generic field type. targetType, FieldAccess.An accessor for the field in its defined shape. definedCreates a new dispatcher for a generic field. |
| Modifier and Type | Method and Description |
|---|---|
| protected static FieldAccess. | Returns: A field access dispatcher for the given field.The field that is being accessed. fieldDescription, FieldAccess.A field accessor for the field in its defined shape. fieldAccessCreates a generic access dispatcher for a given field. |
| public StackManipulation | read()
Implements org. |
| public StackManipulation | write()
Implements org. |
| defined | back to summary |
|---|---|
| private final FieldAccess. An accessor for the field in its defined shape. | |
| targetType | back to summary |
|---|---|
| private final TypeDefinition targetType The resolved generic field type. | |
| OfGenericField | back to summary |
|---|---|
| protected OfGenericField(TypeDefinition targetType, FieldAccess. Creates a new dispatcher for a generic field.
| |
| of | back to summary |
|---|---|
| protected static FieldAccess. Creates a generic access dispatcher for a given field.
| |
| read | back to summary |
|---|---|
| public StackManipulation read() Implements org. Doc from org. Creates a getter representation for a given field.
| |
| write | back to summary |
|---|---|
| public StackManipulation write() Implements org. Doc from org. Creates a setter representation for a given field.
| |