anvil.script.compiler
Class CompiledClassType
java.lang.Object
|
+--anvil.script.compiler.Compiled
|
+--anvil.script.compiler.CompiledScope
|
+--anvil.script.compiler.CompiledClassType
- All Implemented Interfaces:
- ClassType, Scope, Type
- public class CompiledClassType
- extends CompiledScope
- implements ClassType
class CompiledClassType
| 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 |
CompiledClassType(java.lang.ClassLoader classloader,
Scope parent,
java.lang.Class cls,
java.lang.String name,
Doc document,
boolean privat)
|
|
Method Summary |
ClassRef |
getBase()
|
ClassType |
getBaseClass()
|
CompiledClassType |
getCompiledBaseClass()
|
ConstructorType |
getConstructor()
|
int |
getConstructorReference(ConstantPool pool)
|
ClassDispatcher |
getDispatcher(Context context)
|
ClassType[] |
getEnclosingClasses()
|
InterfaceRef[] |
getInterfaces()
|
Any |
getMember(Any instance,
java.lang.String name)
|
Type |
getMember(Context context,
java.lang.String member)
|
Any |
getMemberType(Context context,
java.lang.String member)
|
java.lang.String |
getPathinfo()
|
int |
getType()
|
boolean |
isInstanceOf(Type ofType)
|
Type |
lookupDeclaration(java.lang.String name)
|
Type |
lookupInheritedDeclaration(java.lang.String name)
|
Any |
newInstance()
|
protected MethodType |
onConstructor(java.lang.reflect.Method method,
java.lang.reflect.Constructor constructor,
java.lang.String name,
java.lang.Object[] parameters,
Doc doc,
boolean privat)
|
protected MemberVariableType |
onMemberVariable(java.lang.reflect.Field field,
java.lang.String name,
Doc doc,
boolean privat)
|
void |
setMember(Any instance,
java.lang.String name,
Any value)
|
| Methods inherited from class anvil.script.compiler.CompiledScope |
buildQualifiedName, declare, declare, getDeclarations, getDescriptor, getModule, getTypeRef, initializeMembers, onClass, onConstantVariable, onFunction, onInterface, onInterfaceMethod, onMethod, onNamespace, onScript, onStaticVariable |
| 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 |
_parents
protected ClassType[] _parents
_pathinfo
protected java.lang.String _pathinfo
_base
protected ClassRef _base
_interfaces
protected InterfaceRef[] _interfaces
_constructor
protected ConstructorBase _constructor
_constructor_signature
protected java.lang.String _constructor_signature
_instanceof
protected IntIntMap _instanceof
_fields
protected java.util.Map _fields
_dispatcher
protected ClassDispatcher _dispatcher
CompiledClassType
public CompiledClassType(java.lang.ClassLoader classloader,
Scope parent,
java.lang.Class cls,
java.lang.String name,
Doc document,
boolean privat)
onMemberVariable
protected MemberVariableType onMemberVariable(java.lang.reflect.Field field,
java.lang.String name,
Doc doc,
boolean privat)
- Overrides:
onMemberVariable in class CompiledScope
onConstructor
protected MethodType onConstructor(java.lang.reflect.Method method,
java.lang.reflect.Constructor constructor,
java.lang.String name,
java.lang.Object[] parameters,
Doc doc,
boolean privat)
- Overrides:
onConstructor in class CompiledScope
getPathinfo
public java.lang.String getPathinfo()
- Specified by:
getPathinfo in interface ClassType
getType
public int getType()
- Specified by:
getType in interface Type- Specified by:
getType in class Compiled
getEnclosingClasses
public ClassType[] getEnclosingClasses()
- Specified by:
getEnclosingClasses in interface ClassType
isInstanceOf
public boolean isInstanceOf(Type ofType)
- Specified by:
isInstanceOf in interface ClassType
getConstructor
public ConstructorType getConstructor()
- Specified by:
getConstructor in interface ClassType
getBase
public ClassRef getBase()
- Specified by:
getBase in interface ClassType
getBaseClass
public ClassType getBaseClass()
- Specified by:
getBaseClass in interface ClassType
getCompiledBaseClass
public CompiledClassType getCompiledBaseClass()
newInstance
public Any newInstance()
- Specified by:
newInstance in interface ClassType
getInterfaces
public InterfaceRef[] getInterfaces()
- Specified by:
getInterfaces in interface ClassType
lookupDeclaration
public Type lookupDeclaration(java.lang.String name)
- Specified by:
lookupDeclaration in interface Scope- Overrides:
lookupDeclaration in class CompiledScope
lookupInheritedDeclaration
public Type lookupInheritedDeclaration(java.lang.String name)
- Specified by:
lookupInheritedDeclaration in interface ClassType
getConstructorReference
public int getConstructorReference(ConstantPool pool)
- Specified by:
getConstructorReference in interface ClassType
getMember
public Any getMember(Any instance,
java.lang.String name)
setMember
public void setMember(Any instance,
java.lang.String name,
Any value)
getMember
public Type getMember(Context context,
java.lang.String member)
getMemberType
public Any getMemberType(Context context,
java.lang.String member)
getDispatcher
public ClassDispatcher getDispatcher(Context context)
- Specified by:
getDispatcher in interface ClassType