anvil.core.reflect
Class AdaptiveMemberVariable
java.lang.Object
|
+--anvil.script.compiler.Compiled
|
+--anvil.script.compiler.Variable
|
+--anvil.script.compiler.MemberVariable
|
+--anvil.core.reflect.AdaptiveMemberVariable
- All Implemented Interfaces:
- ClassMember, MemberVariableType, ReflectedJava, Type, VariableType
- public class AdaptiveMemberVariable
- extends MemberVariable
- implements ReflectedJava
| Fields inherited from interface anvil.script.Type |
CLASS, CONSTANT_VARIABLE, CONSTRUCTOR, FUNCTION, FUNCTION_PARAMETER, GLOBAL_NAMESPACE, IMPORT, INTERFACE, INTERFACE_METHOD, LOCAL_VARIABLE, MEMBER_VARIABLE, METHOD, MODULE, NAMESPACE, SCOPE0, STATIC_VARIABLE, SYSTEM_NAMESPACE, TYPE_NAMES |
| Methods inherited from class anvil.script.compiler.Compiled |
findClass, findInterface, findMethod, findNamespace, getDocument, getfield, getName, getParent, getParents, getQualifiedName, getstatic, getstatic, isPrivate, putfield, putstatic, putstatic, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_adapter
protected TypeAdapter _adapter
AdaptiveMemberVariable
public AdaptiveMemberVariable(java.lang.String name,
java.lang.reflect.Field field,
ClassType parent)
getValue
public Any getValue()
- Specified by:
getValue in interface VariableType- Overrides:
getValue in class Variable
getValue
public Any getValue(java.lang.Object self)
- Specified by:
getValue in interface MemberVariableType- Overrides:
getValue in class MemberVariable
setValue
public Any setValue(Any value)
- Specified by:
setValue in interface VariableType- Overrides:
setValue in class Variable
setValue
public Any setValue(java.lang.Object self,
Any value)
- Specified by:
setValue in interface MemberVariableType- Overrides:
setValue in class MemberVariable
toString
public java.lang.String toString()
- Overrides:
toString in class Compiled