| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public FieldInfo | |
| public ModifiableFieldReference. | |
| public Variable | getTargetObject()
Return an expression that can be used to access the target object, if !Modifier.isStatic(field().modifiers()). |
| public Variable | |
| public MethodInfo | |
| public void |
| complete | back to summary |
|---|---|
| public void complete() Mark the end of the code generation to replace the field reference. | |
| field | back to summary |
|---|---|
| public FieldInfo field() | |
| getReferenceType | back to summary |
|---|---|
| public ModifiableFieldReference. | |
| getTargetObject | back to summary |
|---|---|
| public Variable getTargetObject() Return an expression that can be used to access the target object, if !Modifier.isStatic(field().modifiers()). This variable refers to the target object available before the set or get of the field. If the field is static, this returns null. | |
| getValue | back to summary |
|---|---|
| public Variable getValue() Return an expression that can be used to access the field value. If getReferenceType()==GET, this variable must be set to the value returned by the reference. If getReferenceType()==SET, this variable contains the value to be stored by the reference. | |
| method | back to summary |
|---|---|
| public MethodInfo method() | |
| replace | back to summary |
|---|---|
| public void replace() After this call, the field reference will not be emitted. Instead, any sequence of Wrapper calls valid in a method body may be used to generate replacement code for the field reference. As an example, the following code would cause equivalent code to the original reference to be emitted, in the case of a non-static field: Variable target = mf.getTargetObject() ; Variable value = mf.getValue() ; String name = field().name() ; // For getReferenceType() == GET: _assign( value, _field( target, name ) ) ; // For getRerenceType() == SET: _assign( _field( target, name ), value ) ; | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ModifiableFieldReference. | |
| public static final ModifiableFieldReference. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ModifiableFieldReference. | |
| public static ModifiableFieldReference. |
| GET | back to summary |
|---|---|
| public static final ModifiableFieldReference. | |
| SET | back to summary |
|---|---|
| public static final ModifiableFieldReference. | |
| ReferenceType | back to summary |
|---|---|
| private ReferenceType() | |
| valueOf | back to summary |
|---|---|
| public static ModifiableFieldReference. | |
| values | back to summary |
|---|---|
| public static ModifiableFieldReference. | |