Jasmine  1.1
Super fast expression and algorithm evaluator
 All Classes Functions
org.quark.jasmine.Compile Class Reference
Inheritance diagram for org.quark.jasmine.Compile:

Static Public Member Functions

static Expression expression (String line, boolean profileMe)
 
static Expression expression_ (String line, boolean profileMe) throws JasmineException
 
static Algorithm algorithm (String line, boolean profileMe)
 
static Algorithm algorithm_ (String line, boolean profileMe) throws JasmineException
 
static Algorithm algorithm (String[] lines, boolean profileMe)
 
static Algorithm algorithm_ (String[] lines, boolean profileMe) throws JasmineException
 
static void init ()
 
static long getInitTime ()
 

Static Public Attributes

static long initTime = 0
 

Protected Member Functions

String makeInfix (List< Exp > infix)
 

Static Protected Member Functions

static String makeAST (Exp ast)
 
static String makeAST (Deque< Exp > ast)
 
static void mmakeASTimpl (Exp exp, String tab, StringBuilder sb)
 
static String makeByteCode (byte[] b)
 

Static Private Attributes

static String divider = "======================================================================\n"
 

Detailed Description

This class is the key to using Jasmine by provides several static methods to create Expression and Algorithm objects which can then be evaluated.

Author
Peter Lager

Member Function Documentation

static Algorithm org.quark.jasmine.Compile.algorithm ( String  line,
boolean  profileMe 
)
static

Create an algorithm object. If an error is found while compiling the algorithm this method will return null and the error message being displayed in the console window.

Parameters
linethe algorithm to be evaluated
profileMeif true then the algorithm time will be recorded.
Returns
the Algorithm object or null if an error occurred.
static Algorithm org.quark.jasmine.Compile.algorithm ( String[]  lines,
boolean  profileMe 
)
static

Create an algorithm object. If an error is found while compiling the algorithm this method will return null and the error message being displayed in the console window.

Parameters
linesthe algorithm to be evaluated
profileMeif true then the algorithm time will be recorded.
Returns
the Algorithm object or null if an error occurred.
static Algorithm org.quark.jasmine.Compile.algorithm_ ( String  line,
boolean  profileMe 
) throws JasmineException
static

Create an algorithm object. If an error is found while compiling the algorithm an exception is thrown.

Parameters
linethe algorithm to be evaluated
profileMeif true then the algorithm time will be recorded.
Returns
the Algorithm object if no error occurred.
static Algorithm org.quark.jasmine.Compile.algorithm_ ( String[]  lines,
boolean  profileMe 
) throws JasmineException
static

Create an algorithm object. If an error is found while compiling the algorithm an exception is thrown.

Parameters
linesthe algorithm to be evaluated
profileMeif true then the algorithm time will be recorded.
Returns
the Algorithm object if no error occurred.
static Expression org.quark.jasmine.Compile.expression ( String  line,
boolean  profileMe 
)
static

Create an expression object. If an error is found while compiling the expression this method will return null and the error message being displayed in the console window.

Parameters
linethe expression to be evaluated
profileMeif true then the evaluation time will be recorded.
Returns
the Expression object or null if an error occurred.
static Expression org.quark.jasmine.Compile.expression_ ( String  line,
boolean  profileMe 
) throws JasmineException
static

Create an expression object. If an error is found while compiling the expression an exception is thrown.

Parameters
linethe expression to be evaluated
profileMeif true then the evaluation time will be recorded.
Returns
the Expression object if no error occurred.
static void org.quark.jasmine.Compile.init ( )
static

This method initializes the parser used for compiling expressions and algorithms. It is recommended that you call this method during the startup of your application because it takes some time to execute (depends on your hardware but unlikely to exceed 50 milliseconds).
If you don't call this method the initialization will be done on the first attempt to compile an expression or algorithm.

static String org.quark.jasmine.Compile.makeAST ( Exp  ast)
staticprotected

Produces the AST description

static String org.quark.jasmine.Compile.makeByteCode ( byte[]  b)
staticprotected

Produces the Java byte code description

String org.quark.jasmine.Compile.makeInfix ( List< Exp infix)
protected

Produces the infix description

static void org.quark.jasmine.Compile.mmakeASTimpl ( Exp  exp,
String  tab,
StringBuilder  sb 
)
staticprotected

Recursive function to help make the AST description


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