anvil.script.compiler
Class Variable

java.lang.Object
  |
  +--anvil.script.compiler.Compiled
        |
        +--anvil.script.compiler.Variable
All Implemented Interfaces:
Type, VariableType
Direct Known Subclasses:
MemberVariable, StaticVariable

public abstract class Variable
extends Compiled
implements VariableType

class Variable


Field Summary
protected  java.lang.reflect.Field _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
Variable(Scope parent, java.lang.String name, java.lang.reflect.Field field, Doc document, boolean privat)
           
 
Method Summary
 Any getValue()
           
 boolean hasConstantInitializer()
           
 Any setValue(Any value)
           
 
Methods inherited from class anvil.script.compiler.Compiled
findClass, findInterface, findMethod, findNamespace, getDocument, getfield, getName, getParent, getParents, getQualifiedName, getstatic, getstatic, getType, getTypeRef, 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.Type
getDocument, getName, getParent, getParents, getQualifiedName, getType, getTypeRef, isPrivate
 

Field Detail

_field

protected java.lang.reflect.Field _field
Constructor Detail

Variable

public Variable(Scope parent,
                java.lang.String name,
                java.lang.reflect.Field field,
                Doc document,
                boolean privat)
Method Detail

getValue

public Any getValue()
Specified by:
getValue in interface VariableType

setValue

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

hasConstantInitializer

public boolean hasConstantInitializer()
Specified by:
hasConstantInitializer in interface VariableType