anvil.core.reflect
Class AdaptiveClassVariable

java.lang.Object
  |
  +--anvil.script.compiler.Compiled
        |
        +--anvil.script.compiler.Variable
              |
              +--anvil.script.compiler.StaticVariable
                    |
                    +--anvil.core.reflect.AdaptiveClassVariable
All Implemented Interfaces:
ReflectedJava, StaticVariableType, Type, VariableType

public class AdaptiveClassVariable
extends StaticVariable
implements ReflectedJava


Field Summary
protected  TypeAdapter _adapter
           
 
Fields inherited from class anvil.script.compiler.Variable
_field
 
Fields inherited from class anvil.script.compiler.Compiled
_document, _name, _parent, _parents, _private, _qname
 
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
AdaptiveClassVariable(java.lang.String name, java.lang.reflect.Field field, Scope parent)
           
 
Method Summary
 Any getValue()
           
 Any setValue(Any value)
           
 
Methods inherited from class anvil.script.compiler.StaticVariable
getType, getTypeRef
 
Methods inherited from class anvil.script.compiler.Variable
hasConstantInitializer
 
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
 
Methods inherited from interface anvil.script.VariableType
hasConstantInitializer
 
Methods inherited from interface anvil.script.Type
getDocument, getName, getParent, getParents, getQualifiedName, isPrivate
 

Field Detail

_adapter

protected TypeAdapter _adapter
Constructor Detail

AdaptiveClassVariable

public AdaptiveClassVariable(java.lang.String name,
                             java.lang.reflect.Field field,
                             Scope parent)
Method Detail

getValue

public Any getValue()
Specified by:
getValue in interface VariableType
Overrides:
getValue in class Variable

setValue

public Any setValue(Any value)
Specified by:
setValue in interface VariableType
Overrides:
setValue in class Variable