|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModifiableFieldReference
| Nested Class Summary | |
|---|---|
static class |
ModifiableFieldReference.ReferenceType
|
| Method Summary | |
|---|---|
void |
complete()
Mark the end of the code generation to replace the field reference. |
FieldInfo |
field()
|
ModifiableFieldReference.ReferenceType |
getReferenceType()
|
Variable |
getTargetObject()
Return an expression that can be used to access the target object, if !Modifier.isStatic(field().modifiers()). |
Variable |
getValue()
Return an expression that can be used to access the field value. |
MethodInfo |
method()
|
void |
replace()
After this call, the field reference will not be emitted. |
| Methods inherited from interface org.glassfish.pfl.dynamic.codegen.spi.FieldInfo |
|---|
type |
| Methods inherited from interface org.glassfish.pfl.dynamic.codegen.spi.MemberInfo |
|---|
isAccessibleInContext, modifiers, myClassInfo, name |
| Method Detail |
|---|
MethodInfo method()
FieldInfo field()
ModifiableFieldReference.ReferenceType getReferenceType()
Variable getTargetObject()
Variable getValue()
void replace()
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 ) ;
void complete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||