anvil.script.compiler
Class NativeClass
java.lang.Object
|
+--anvil.script.compiler.NativeClass
- All Implemented Interfaces:
- ClassType, NativeJava, Scope, Type
- public class NativeClass
- extends java.lang.Object
- implements ClassType, NativeJava
class NativeClass
| 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 |
NativeClass(java.lang.String classname,
java.lang.Class cls)
|
NativeClass(java.lang.String classname,
java.lang.Class cls,
ClassType base,
java.lang.String document)
|
NativeClass(java.lang.String classname,
java.lang.Class cls,
java.lang.String document)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_class
protected java.lang.Class _class
_descriptor
protected java.lang.String _descriptor
_parent
protected NativeNamespace _parent
_name
protected java.lang.String _name
_qname
protected java.lang.String _qname
_constructor
protected NativeConstructor _constructor
_base
protected ClassRef _base
_document
protected Doc _document
_types
protected SymbolTable _types
_dispatcher
protected ClassDispatcher _dispatcher
_wrapper
protected Any _wrapper
NativeClass
public NativeClass(java.lang.String classname,
java.lang.Class cls)
NativeClass
public NativeClass(java.lang.String classname,
java.lang.Class cls,
java.lang.String document)
NativeClass
public NativeClass(java.lang.String classname,
java.lang.Class cls,
ClassType base,
java.lang.String document)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getName
public java.lang.String getName()
- Specified by:
getName in interface Type
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate in interface Type
getQualifiedName
public final java.lang.String getQualifiedName()
- Specified by:
getQualifiedName in interface ClassType
getPathinfo
public java.lang.String getPathinfo()
- Specified by:
getPathinfo in interface ClassType
getType
public int getType()
- Specified by:
getType in interface Type
getParent
public Scope getParent()
- Specified by:
getParent in interface Type
getParents
public Scope[] getParents()
- Specified by:
getParents in interface Type
getEnclosingClasses
public ClassType[] getEnclosingClasses()
- Specified by:
getEnclosingClasses in interface ClassType
getDocument
public Doc getDocument()
- Specified by:
getDocument in interface Type
getDeclarations
public java.util.Iterator getDeclarations()
- Specified by:
getDeclarations in interface Scope
lookupDeclaration
public Type lookupDeclaration(java.lang.String name)
- Specified by:
lookupDeclaration in interface Scope
lookupInheritedDeclaration
public Type lookupInheritedDeclaration(java.lang.String name)
- Specified by:
lookupInheritedDeclaration in interface ClassType
isInstanceOf
public boolean isInstanceOf(Type ofType)
- Specified by:
isInstanceOf in interface ClassType
getBase
public ClassRef getBase()
- Specified by:
getBase in interface ClassType
getBaseClass
public ClassType getBaseClass()
- Specified by:
getBaseClass in interface ClassType
getInterfaces
public InterfaceRef[] getInterfaces()
- Specified by:
getInterfaces in interface ClassType
getConstructor
public ConstructorType getConstructor()
- Specified by:
getConstructor in interface ClassType
newInstance
public Any newInstance()
- Specified by:
newInstance in interface ClassType
newInstance
public Any newInstance(Context context,
Any[] parameters)
getDispatcher
public ClassDispatcher getDispatcher(Context context)
- Specified by:
getDispatcher in interface ClassType
getDescriptor
public java.lang.String getDescriptor()
- Specified by:
getDescriptor in interface ClassType
getTypeRef
public int getTypeRef(ConstantPool pool)
- Specified by:
getTypeRef in interface Type
getConstructorReference
public int getConstructorReference(ConstantPool pool)
- Specified by:
getConstructorReference in interface ClassType
getWrapper
public Any getWrapper()
getMethod
public Any getMethod(Context context,
java.lang.String name)
getDeclaration
public Type getDeclaration(Context context,
java.lang.String name)