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

List of all members.

Public Member Functions

byte[] getBytes ()
 JavaClassObject (String name, Kind kind)
OutputStream openOutputStream () throws IOException

Protected Attributes

final ByteArrayOutputStream bos

Detailed Description

Definition at line 10 of file JavaClassObject.java.


Constructor & Destructor Documentation

Registers the compiled class object under URI containing the class full name

Parameters:
nameFull name of the compiled class
kindKind of the data. It will be CLASS in our case

Definition at line 30 of file JavaClassObject.java.


Member Function Documentation

Will be used by our file manager to get the byte code that can be put into memory to instantiate our class

Returns:
compiled byte code

Definition at line 41 of file JavaClassObject.java.

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.


Member Data Documentation

final ByteArrayOutputStream com.rosalfred.core.ia.rivescript.lang.java.JavaClassObject.bos [protected]
Initial value:
            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.


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