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


Field Summary
protected  Address _address
           
protected  boolean _assert
           
protected  java.util.HashMap _dependencies
           
protected  boolean _initialized
           
protected  Location _location
           
protected  java.net.URL _url
           
 
Fields inherited from class anvil.script.compiler.CompiledScope
_class, _descriptor, _types
 
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
CompiledModule(java.lang.String url)
           
 
Method Summary
static java.util.HashMap addCase(java.util.HashMap cases, Any value, int index)
           
static Any b2a(boolean bool)
           
 void destroy()
           
 Address getAddress()
           
 boolean getAssert()
           
 java.util.Iterator getDependencies()
           
 Dependency getDependency(Address address)
           
 java.lang.String getDescriptor()
           
 java.lang.String getPathinfo()
           
 int getType()
           
 Any getType(Context context, java.lang.String name)
           
 int getTypeRef(ConstantPool pool)
           
 java.net.URL getURL()
           
 int getVersion()
           
static boolean hasNext(Any value)
           
 void init(Address address)
           
 void init(Context context)
           
static BindingIterator iterate(Any iter)
           
static Any iterator(Any value)
           
 Type lookupDeclaration(java.lang.String name)
           
static Any next(Any value)
           
static Any nextKey(Any value)
           
protected  void onScript(java.lang.String name, Doc doc)
           
static AnyTuple rest(Any[] parameters, int startFrom)
           
static int switchCase(java.util.HashMap cases, Any value)
           
static Any toAny(boolean bool)
           
 java.lang.String toString()
           
 
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
 
Methods inherited from interface anvil.script.Scope
getDeclarations
 
Methods inherited from interface anvil.script.Type
getDocument, getName, getParent, getParents, getQualifiedName, isPrivate
 

Field Detail

_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
Constructor Detail

CompiledModule

public CompiledModule(java.lang.String url)
Method Detail

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)