All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----gnu.jel.ExpressionBits
As You may notice this class is serializable. Serialization of ExpressionBits objects is preferred method of persistent storage of compiled expressions. To restore compiled expression first deserialize corresponding ExpressionBits object and then call its getExpression() method.
The unique class name of the expression is generated automatically by appending successive integer numbers (incremented for each instantiated expression) to the "gnu.jel.generated.E_". The number is represented by long integer allowing to instantiate close to 10^19 expressions during the program lifetime. This means program, instantiating a new expression each second, will fail with numeric overflow in about 300000000000 years, which is big enough for most applications.
public CompiledExpression getExpression()
public byte[] getImage()
This should be used for debugging only. JEL compiled expressions are not represented only by Java bytecode (since constants of type object are allowed) which means saving bytes into classfile and loading it using JVM classloader will not always work.
All Packages Class Hierarchy This Package Previous Next Index