Public Member Functions | |
byte[] | getBytes () |
JavaClassObject (String name, Kind kind) | |
OutputStream | openOutputStream () throws IOException |
Protected Attributes | |
final ByteArrayOutputStream | bos |
Definition at line 10 of file JavaClassObject.java.
com.rosalfred.core.ia.rivescript.lang.java.JavaClassObject.JavaClassObject | ( | String | name, |
Kind | kind | ||
) | [inline] |
Registers the compiled class object under URI containing the class full name
name | Full name of the compiled class |
kind | Kind of the data. It will be CLASS in our case |
Definition at line 30 of file JavaClassObject.java.
byte [] com.rosalfred.core.ia.rivescript.lang.java.JavaClassObject.getBytes | ( | ) | [inline] |
Will be used by our file manager to get the byte code that can be put into memory to instantiate our class
Definition at line 41 of file JavaClassObject.java.
OutputStream com.rosalfred.core.ia.rivescript.lang.java.JavaClassObject.openOutputStream | ( | ) | throws IOException [inline] |
Will provide the compiler with an output stream that leads to our byte array. This way the compiler will write everything into the byte array that we will instantiate later
Definition at line 51 of file JavaClassObject.java.
final ByteArrayOutputStream com.rosalfred.core.ia.rivescript.lang.java.JavaClassObject.bos [protected] |
new ByteArrayOutputStream()
Byte code created by the compiler will be stored in this ByteArrayOutputStream so that we can later get the byte array out of it and put it in the memory as an instance of our class.
Definition at line 18 of file JavaClassObject.java.