anvil.core
Class Modules

java.lang.Object
  |
  +--anvil.core.Modules
All Implemented Interfaces:
IncrementalScope, Module, NativeJava, Scope, Type

public class Modules
extends java.lang.Object
implements NativeJava, IncrementalScope, Module

class Modules


Nested Class Summary
protected static class Modules.SyntheticNamespace
           
 
Field Summary
static Any ANY_NAME
           
static java.lang.String NAME
           
 
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
Modules()
           
 
Method Summary
 void addDeclaration(Type type)
           
 Address getAddress()
           
 java.util.Iterator getDeclarations()
           
 java.util.Iterator getDependencies()
           
 Dependency getDependency(Address address)
           
 java.lang.String getDescriptor()
           
 Doc getDocument()
           
static Modules getInstance()
           
 java.lang.String getName()
           
 Scope getParent()
           
 Scope[] getParents()
           
 java.lang.String getPathinfo()
           
 java.lang.String getQualifiedName()
           
 int getType()
           
 int getTypeRef(ConstantPool pool)
           
 java.net.URL getURL()
           
 boolean isPrivate()
           
 Type lookupDeclaration(java.lang.String name)
           
 void register(java.lang.String dottedname, NativeNamespace lib)
           
 void register(java.lang.String dottedname, java.lang.String classname)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

ANY_NAME

public static final Any ANY_NAME
Constructor Detail

Modules

public Modules()
Method Detail

getInstance

public static final Modules getInstance()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addDeclaration

public void addDeclaration(Type type)
Specified by:
addDeclaration in interface IncrementalScope

register

public void register(java.lang.String dottedname,
                     NativeNamespace lib)

register

public void register(java.lang.String dottedname,
                     java.lang.String classname)

getName

public java.lang.String getName()
Specified by:
getName in interface Type

getQualifiedName

public java.lang.String getQualifiedName()
Specified by:
getQualifiedName in interface Type

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface Type

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

getDocument

public Doc getDocument()
Specified by:
getDocument in interface Type

getTypeRef

public int getTypeRef(ConstantPool pool)
Specified by:
getTypeRef 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

getURL

public java.net.URL getURL()
Specified by:
getURL in interface Module

getAddress

public Address getAddress()
Specified by:
getAddress in interface Module

getPathinfo

public java.lang.String getPathinfo()
Specified by:
getPathinfo in interface Module

getDescriptor

public java.lang.String getDescriptor()
Specified by:
getDescriptor in interface Module

getDependencies

public java.util.Iterator getDependencies()
Specified by:
getDependencies in interface Module

getDependency

public Dependency getDependency(Address address)
Specified by:
getDependency in interface Module