Public Member Functions | |
ClassFileManager (StandardJavaFileManager standardManager) | |
ClassLoader | getClassLoader (Location location) |
JavaFileObject | getJavaFileForOutput (Location location, String className, Kind kind, FileObject sibling) throws IOException |
Private Attributes | |
HashMap< String, JavaClassObject > | jclassObjects |
Definition at line 14 of file ClassFileManager.java.
com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager.ClassFileManager | ( | StandardJavaFileManager | standardManager | ) | [inline] |
Will initialize the manager with the specified standard java file manager
standardManger |
Definition at line 30 of file ClassFileManager.java.
ClassLoader com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager.getClassLoader | ( | Location | location | ) | [inline] |
Will be used by us to get the class loader for our compiled class. It creates an anonymous class extending the SecureClassLoader which uses the byte code created by the compiler and stored in the JavaClassObject, and returns the Class for it
Definition at line 42 of file ClassFileManager.java.
JavaFileObject com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager.getJavaFileForOutput | ( | Location | location, |
String | className, | ||
Kind | kind, | ||
FileObject | sibling | ||
) | throws IOException [inline] |
Gives the compiler an instance of the JavaClassObject so that the compiler can write the byte code into it.
Definition at line 70 of file ClassFileManager.java.
HashMap<String, JavaClassObject> com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager.jclassObjects [private] |
new HashMap<String, JavaClassObject>()
Instance of JavaClassObject that will store the compiled bytecode of our class
Definition at line 21 of file ClassFileManager.java.