Public Member Functions | Private Attributes
com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager Class Reference
Inheritance diagram for com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager:
Inheritance graph
[legend]

List of all members.

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, JavaClassObjectjclassObjects

Detailed Description

Definition at line 14 of file ClassFileManager.java.


Constructor & Destructor Documentation

com.rosalfred.core.ia.rivescript.lang.java.ClassFileManager.ClassFileManager ( StandardJavaFileManager  standardManager) [inline]

Will initialize the manager with the specified standard java file manager

Parameters:
standardManger

Definition at line 30 of file ClassFileManager.java.


Member Function Documentation

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.


Member Data Documentation

Initial value:
            new HashMap<String, JavaClassObject>()

Instance of JavaClassObject that will store the compiled bytecode of our class

Definition at line 21 of file ClassFileManager.java.


The documentation for this class was generated from the following file:


alfred_bot
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Tue Jun 14 2016 01:34:50