|
static String | divider = "======================================================================\n" |
|
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
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
-
line | the algorithm to be evaluated |
profileMe | if 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
-
lines | the algorithm to be evaluated |
profileMe | if true then the algorithm time will be recorded. |
- Returns
- the Algorithm object or null if an error occurred.
Create an algorithm object. If an error is found while compiling the algorithm an exception is thrown.
- Parameters
-
line | the algorithm to be evaluated |
profileMe | if true then the algorithm time will be recorded. |
- Returns
- the Algorithm object if no error occurred.
Create an algorithm object. If an error is found while compiling the algorithm an exception is thrown.
- Parameters
-
lines | the algorithm to be evaluated |
profileMe | if 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
-
line | the expression to be evaluated |
profileMe | if true then the evaluation time will be recorded. |
- Returns
- the Expression object or null if an error occurred.
Create an expression object. If an error is found while compiling the expression an exception is thrown.
- Parameters
-
line | the expression to be evaluated |
profileMe | if 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:
- /Users/peter/git/jasmine-repos/Jasmine/src/org/quark/jasmine/Compile.java