|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaspoev.interpreter.Interpreter
A Vejal interpreter that creates meta-classes and meta-objects in Java. This class more or less only governs meta-classes, because for the most part, vejal meta data knows how to handle itself when executed. Meta-Objects (instances of these Meta-Classes) are kept within the current ExecutionEnvironment.
| Field Summary | |
protected DatabaseManager |
database
|
protected static Interpreter |
instance
|
protected java.util.Hashtable |
loadedClasses
|
protected static java.util.Hashtable |
threadMap
|
| Constructor Summary | |
protected |
Interpreter()
|
| Method Summary | |
TypeReferenceElement |
bindVersion(TypeReferenceElement type)
|
static DatabaseManager |
getDatabaseManager()
Returns the database manager associated with the interpreter. |
java.util.Collection |
getDefinedClasses()
Returns a collection |
java.util.Collection |
getDefinedTypes()
Returns a collection |
static ExecutionEnvironment |
getEnvironment()
Returns the execution environment associated with the current thread. |
java.util.Collection |
getLoadedClasses()
|
static Interpreter |
instance()
Returns the singleton instance of the interpreter. |
boolean |
isDefinedType(TypeReferenceElement type)
Checks to see if a type's name is known in the interpreter - if so, then it has defined versions. |
boolean |
isDefinedVersion(TypeReferenceElement type)
Checks to see if a type has a corresponding class definition. |
boolean |
isLoadedClassName(java.lang.String className)
|
static void |
loadClass(ClassDeclarationElement classDecl)
|
protected void |
loadDefinedClasses()
This method is called during initialization. |
ClassDeclarationElement |
lookUpClass(TypeReferenceElement type)
Returns the class definition associated with the argument type. |
static void |
registerEnvironment(ExecutionEnvironment env)
Registers the provided execution environment with the current thread. |
static void |
registerEnvironment(ExecutionEnvironment env,
java.lang.Thread thread)
Registers the provided execution environment with the provided thread. |
void |
run()
Start the Vejal program. |
void |
run(TypeReferenceElement type,
ArgumentListElement args)
Looks for a main method in the specified type, and then starts execution from that point with a new thread and execution environment. |
static void |
shutDown()
|
void |
startUp()
Starts the interpreter - Opens the database and loads all defined types. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Interpreter instance
protected static java.util.Hashtable threadMap
protected DatabaseManager database
protected java.util.Hashtable loadedClasses
| Constructor Detail |
protected Interpreter()
| Method Detail |
public void startUp()
public TypeReferenceElement bindVersion(TypeReferenceElement type)
public static Interpreter instance()
public static DatabaseManager getDatabaseManager()
public java.util.Collection getDefinedClasses()
public java.util.Collection getDefinedTypes()
public static ExecutionEnvironment getEnvironment()
public java.util.Collection getLoadedClasses()
public boolean isDefinedType(TypeReferenceElement type)
public boolean isDefinedVersion(TypeReferenceElement type)
public boolean isLoadedClassName(java.lang.String className)
public static void loadClass(ClassDeclarationElement classDecl)
protected void loadDefinedClasses()
public ClassDeclarationElement lookUpClass(TypeReferenceElement type)
public static void registerEnvironment(ExecutionEnvironment env)
public static void registerEnvironment(ExecutionEnvironment env,
java.lang.Thread thread)
public void run()
public void run(TypeReferenceElement type,
ArgumentListElement args)
public static void shutDown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||