anvil.script.compiler
Class CompiledModule
java.lang.Object
|
+--anvil.script.compiler.Compiled
|
+--anvil.script.compiler.CompiledScope
|
+--anvil.script.compiler.CompiledModule
- All Implemented Interfaces:
- Module, Scope, Type
- public class CompiledModule
- extends CompiledScope
- implements Module
class CompiledModule
| 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 |
| Methods inherited from class anvil.script.compiler.CompiledScope |
buildQualifiedName, declare, declare, getDeclarations, getModule, initializeMembers, onClass, onConstantVariable, onConstructor, onFunction, onInterface, onInterfaceMethod, onMemberVariable, onMethod, onNamespace, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_dependencies
protected java.util.HashMap _dependencies
_url
protected java.net.URL _url
_address
protected Address _address
_location
protected Location _location
_assert
protected boolean _assert
_initialized
protected boolean _initialized
CompiledModule
public CompiledModule(java.lang.String url)
init
public void init(Context context)
toString
public java.lang.String toString()
- Overrides:
toString in class Compiled
init
public void init(Address address)
onScript
protected void onScript(java.lang.String name,
Doc doc)
- Overrides:
onScript in class CompiledScope
destroy
public void destroy()
getVersion
public int getVersion()
getType
public final int getType()
- Specified by:
getType in interface Type- Specified by:
getType in class Compiled
getAssert
public boolean getAssert()
getURL
public final java.net.URL getURL()
- Specified by:
getURL in interface Module
getAddress
public final Address getAddress()
- Specified by:
getAddress in interface Module
getPathinfo
public final java.lang.String getPathinfo()
- Specified by:
getPathinfo in interface Module
lookupDeclaration
public Type lookupDeclaration(java.lang.String name)
- Specified by:
lookupDeclaration in interface Scope- Overrides:
lookupDeclaration in class CompiledScope
getTypeRef
public int getTypeRef(ConstantPool pool)
- Specified by:
getTypeRef in interface Type- Overrides:
getTypeRef in class CompiledScope
getDescriptor
public java.lang.String getDescriptor()
- Specified by:
getDescriptor in interface Module- Overrides:
getDescriptor in class CompiledScope
getDependencies
public java.util.Iterator getDependencies()
- Specified by:
getDependencies in interface Module
getDependency
public Dependency getDependency(Address address)
- Specified by:
getDependency in interface Module
addCase
public static final java.util.HashMap addCase(java.util.HashMap cases,
Any value,
int index)
switchCase
public static final int switchCase(java.util.HashMap cases,
Any value)
toAny
public static final Any toAny(boolean bool)
b2a
public static final Any b2a(boolean bool)
rest
public static final AnyTuple rest(Any[] parameters,
int startFrom)
iterate
public static final BindingIterator iterate(Any iter)
hasNext
public static final boolean hasNext(Any value)
next
public static final Any next(Any value)
nextKey
public static final Any nextKey(Any value)
iterator
public static final Any iterator(Any value)
getType
public final Any getType(Context context,
java.lang.String name)