Jasmine  1.1
Super fast expression and algorithm evaluator
 All Classes Functions
org.quark.jasmine.Exp Class Referenceabstract

Inherits Opcodes, and org.quark.jasmine.CompileConstants.

Inherited by org.quark.jasmine.Abs, org.quark.jasmine.Acos, org.quark.jasmine.Add, org.quark.jasmine.And, org.quark.jasmine.Asin, org.quark.jasmine.Assign, org.quark.jasmine.Atan, org.quark.jasmine.Atan2, org.quark.jasmine.Cbrt, org.quark.jasmine.Ceil, org.quark.jasmine.Comma, org.quark.jasmine.Constrain, org.quark.jasmine.Cos, org.quark.jasmine.Cosh, org.quark.jasmine.Dec, org.quark.jasmine.Deg, org.quark.jasmine.Div, org.quark.jasmine.E, org.quark.jasmine.Else, org.quark.jasmine.Endif, org.quark.jasmine.EpowerX, org.quark.jasmine.EQ, org.quark.jasmine.False, org.quark.jasmine.Floor, org.quark.jasmine.For, org.quark.jasmine.ForEnd, org.quark.jasmine.GT, org.quark.jasmine.GTE, org.quark.jasmine.Hat, org.quark.jasmine.If, org.quark.jasmine.Inc, org.quark.jasmine.Lerp, org.quark.jasmine.Log10, org.quark.jasmine.LogE, org.quark.jasmine.LParen, org.quark.jasmine.LT, org.quark.jasmine.LTE, org.quark.jasmine.MapV, org.quark.jasmine.Max, org.quark.jasmine.Min, org.quark.jasmine.Mod, org.quark.jasmine.Mul, org.quark.jasmine.Neg, org.quark.jasmine.NEQ, org.quark.jasmine.NOP, org.quark.jasmine.Not, org.quark.jasmine.Operand, org.quark.jasmine.Or, org.quark.jasmine.Pi, org.quark.jasmine.Pow, org.quark.jasmine.Print, org.quark.jasmine.Rad, org.quark.jasmine.Rand, org.quark.jasmine.Repeat, org.quark.jasmine.Round, org.quark.jasmine.RParen, org.quark.jasmine.Separator, org.quark.jasmine.Signum, org.quark.jasmine.Sin, org.quark.jasmine.Sinh, org.quark.jasmine.Sqrt, org.quark.jasmine.Stop, org.quark.jasmine.Sub, org.quark.jasmine.Tan, org.quark.jasmine.Tanh, org.quark.jasmine.Tau, org.quark.jasmine.Then, org.quark.jasmine.True, org.quark.jasmine.UMinus, org.quark.jasmine.Until, org.quark.jasmine.Wend, org.quark.jasmine.While, and org.quark.jasmine.Xor.

Public Member Functions

boolean equals (Object obj)
 
int hashCode ()
 

Static Protected Attributes

static final String MATH = "java/lang/Math"
 

Package Functions

boolean addExp (Exp exp)
 
abstract void compile (final MethodVisitor mv, final Deque< JumpLabel > jls) throws JasmineException
 
void prepare (String symbol, int priority)
 
void prepare (String symbol, int nbrExps, int priority)
 

Package Attributes

Exp parent = null
 
Exp[] exps
 
int nbrExps = 0
 
int priority
 
String regex = ""
 
boolean rightAssociative = false
 
boolean unaryFollows = false
 
int lineNo
 
int pos
 
String symbol = ""
 

Additional Inherited Members

- Public Attributes inherited from org.quark.jasmine.CompileConstants
String GENERATED_ALGORITHM_CLASS = "QuarkAlgorithm"
 
String GENERATED_EXPRESSION_CLASS = "QuarkExpression"
 
String EXPRESSION_CLASS = Type.getInternalName(Expression.class)
 
String EXPRESSION_CLASS_ID = Type.getDescriptor(Expression.class)
 
String ANSWER_CLASS = Type.getInternalName(Answer.class)
 
String ANSWER_CLASS_ID = Type.getDescriptor(Answer.class)
 
- Static Public Attributes inherited from org.quark.jasmine.CompileConstants
static String ALGORITHM_CLASS = Type.getInternalName(Algorithm.class)
 
static String ALGORITHM_CLASS_ID = Type.getDescriptor(Algorithm.class)
 

Detailed Description

An abstract expression. This is the base class for all operators and operand types.

Author
Peter Lager

Member Function Documentation

void org.quark.jasmine.Exp.prepare ( String  symbol,
int  nbrExps,
int  priority 
)
package

Prepare the Exp class with initial vales.

Parameters
symbolthe symbol for this expression
nbrExpsnumber of operands needed
priorityreqd for operator precedence.

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