anvil.script.compiler
Class MemberVariable
java.lang.Object
|
+--anvil.script.compiler.Compiled
|
+--anvil.script.compiler.Variable
|
+--anvil.script.compiler.MemberVariable
- All Implemented Interfaces:
- ClassMember, MemberVariableType, Type, VariableType
- Direct Known Subclasses:
- AdaptiveMemberVariable
- public class MemberVariable
- extends Variable
- implements MemberVariableType
class MemberVariable
| 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 |
|
Constructor Summary |
MemberVariable(Scope clazz,
java.lang.String name,
java.lang.reflect.Field field,
Doc document,
boolean privat)
|
| 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, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MemberVariable
public MemberVariable(Scope clazz,
java.lang.String name,
java.lang.reflect.Field field,
Doc document,
boolean privat)
getType
public int getType()
- Specified by:
getType in interface Type- Specified by:
getType in class Compiled
getClassType
public ClassType getClassType()
- Specified by:
getClassType in interface ClassMember
getTypeRef
public int getTypeRef(ConstantPool pool)
- Specified by:
getTypeRef in interface Type- Specified by:
getTypeRef in class Compiled
getValue
public Any getValue(java.lang.Object self)
- Specified by:
getValue in interface MemberVariableType
setValue
public Any setValue(java.lang.Object self,
Any value)
- Specified by:
setValue in interface MemberVariableType