anvil.script.compiler
Class ConstantVariable

java.lang.Object
  |
  +--anvil.script.compiler.Compiled
        |
        +--anvil.script.compiler.Variable
              |
              +--anvil.script.compiler.StaticVariable
                    |
                    +--anvil.script.compiler.ConstantVariable
All Implemented Interfaces:
ConstantVariableType, StaticVariableType, Type, VariableType
Direct Known Subclasses:
NativeConstantVariable, ReflectedConstantVariable

public class ConstantVariable
extends StaticVariable
implements ConstantVariableType

class ConstantVariable


Field Summary
 
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
ConstantVariable(Scope parent, java.lang.String name, java.lang.reflect.Field field, Doc document, boolean privat)
           
 
Method Summary
 int getType()
           
 int getTypeRef(ConstantPool pool)
           
 boolean hasConstantInitializer()
           
 
Methods inherited from class anvil.script.compiler.Variable
getValue, setValue
 
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
getValue, setValue
 
Methods inherited from interface anvil.script.Type
getDocument, getName, getParent, getParents, getQualifiedName, isPrivate
 

Constructor Detail

ConstantVariable

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

getType

public int getType()
Specified by:
getType in interface Type
Overrides:
getType in class StaticVariable

hasConstantInitializer

public boolean hasConstantInitializer()
Specified by:
hasConstantInitializer in interface VariableType
Overrides:
hasConstantInitializer in class Variable

getTypeRef

public int getTypeRef(ConstantPool pool)
Specified by:
getTypeRef in interface Type
Overrides:
getTypeRef in class StaticVariable