Package | Description |
---|---|
org.expressionj.expr |
Contain classes that are used to compute equations.
|
org.expressionj.model |
Contains fundamental classes used for expressions.
|
org.expressionj.util |
Contains several utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAryExpression
An abstract Ary expression.
|
class |
AbstractAryNumericExpression
An abstract Ary numeric expression.
|
class |
AbstractAssignment
An abstract assignment.
|
class |
AbstractExprFunction
Abstract function expression.
|
class |
AbstractScalarAssignment
An abstract assignment.
|
class |
AbstractUnaryExpression
An abstract unary expression.
|
class |
AbstractUnaryNumericExpression
An abstract unary numeric expression.
|
class |
CodeBlock
A code block containing several "<do something>;", each being one
Expression . |
class |
ExprABS
Represent a "abs" expression.
|
class |
ExprACOS
Represent a "aCos" expression.
|
class |
ExprADD
Represent a "ADD" expression.
|
class |
ExprAddAssignment
The += operator.
|
class |
ExprAffectation
An affectation expression.
|
class |
ExprAND
Represent a "AND" expression.
|
class |
ExprArray
Represent an array creation expression.
|
class |
ExprArrayAffect
An affectation expression for an array.
|
class |
ExprArrayIndex
Represent an array index.
|
class |
ExprASIN
Represent a "ASin" expression.
|
class |
ExprATAN
Represent a "atan" expression.
|
class |
ExprATAN2
Represent a "atn2" expression.
|
class |
ExprBREAK
The break expression.
|
class |
ExprCEIL
Represent a "ceil" expression.
|
class |
ExprCHOICE
An if - then - else if - else expression.
|
class |
ExprCOS
Represent a "Cos" expression.
|
class |
ExprDecrement
Represent a decrement (--) expression.
|
class |
ExprDIV
Represent a "Divide" expression.
|
class |
ExprDivAssignment
The /= operator.
|
class |
ExprECHO
Represent a "echo" expression.
|
class |
ExprEQ
Represent a "Equal to" expression.
|
class |
ExprFLOOR
Represent a "floor" expression.
|
class |
ExprFORMAT
Represent a "format" expression.
|
class |
ExprFunction
Represent a "Function" expression.
|
class |
ExprGE
Represent a "Greater or equal than" expression.
|
class |
ExprGT
Represent a "Greater than" expression.
|
class |
ExprIncrement
Represent an increment (++) expression.
|
class |
ExprLE
Represent a "Less or Equal than" expression.
|
class |
ExprLT
Represent a "Less or Equal than" expression.
|
class |
ExprMOD
Represent a "%" (modulo) expression.
|
class |
ExprMULT
Represent a "Multiply" expression.
|
class |
ExprMultAssignment
The *= operator.
|
class |
ExprNEQ
Represent a "Not Equal than" expression.
|
class |
ExprNOT
Represent a "Not" expression.
|
class |
ExprOR
Represent a "Or" expression.
|
class |
ExprPOW
Represent a "pow" expression.
|
class |
ExprSIGN
Represent a "sign" expression.
|
class |
ExprSIN
Represent a "Sin" expression.
|
class |
ExprSQRT
Represent a "sqrt" expression.
|
class |
ExprSUB
Represent a "Subtract" expression.
|
class |
ExprSubAssignment
The -= operator.
|
class |
ExprTAN
Represent a "tan" expression.
|
class |
ExprToDegrees
Represent a "toDegrees" expression.
|
class |
ExprToRadians
Represent a "toRadians" expression.
|
class |
ExprWHILE
A while expression.
|
class |
ExprXOR
Represent a "XOr" expression.
|
class |
ParsedEquation
This class represent a parsed condition.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
AbstractUnaryExpression.expr
The enclosed expression.
|
protected Expression |
AbstractAryExpression.expr1 |
protected Expression |
AbstractAryExpression.expr2 |
protected Expression |
ExprArrayAffect.index |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Expression> |
AbstractExprFunction.exprs |
protected java.util.List<Expression> |
ExprArray.exprs |
Modifier and Type | Method and Description |
---|---|
Expression |
ExprWHILE.getCondition() |
Expression |
AbstractScalarAssignment.getExpression() |
Expression |
ExprABS.getExpression() |
Expression |
ExprACOS.getExpression() |
Expression |
ExprASIN.getExpression() |
Expression |
ExprATAN.getExpression() |
Expression |
ExprArrayAffect.getExpression() |
Expression |
ExprArrayIndex.getExpression() |
Expression |
ExprCEIL.getExpression() |
Expression |
ExprCOS.getExpression() |
Expression |
ExprECHO.getExpression() |
Expression |
ExprFLOOR.getExpression() |
Expression |
ExprNOT.getExpression() |
Expression |
ExprSIGN.getExpression() |
Expression |
ExprSIN.getExpression() |
Expression |
ExprSQRT.getExpression() |
Expression |
ExprTAN.getExpression() |
Expression |
ExprToDegrees.getExpression() |
Expression |
ExprToRadians.getExpression() |
Expression |
ExprWHILE.getExpression() |
Expression |
ParsedEquation.getExpression() |
Expression |
AbstractAryExpression.getExpression1() |
Expression |
AbstractAryExpression.getExpression2() |
Expression |
ExprArrayAffect.getIndex()
Return the index of the array to assign.
|
Expression |
CodeBlock.getRoot()
Return the root expression.
|
Expression |
ExprBREAK.getRoot()
Return the root expression.
|
Expression |
ExprCHOICE.getRoot()
Return the root expression.
|
Expression |
ExprWHILE.getRoot()
Return the root expression.
|
Expression |
ParsedEquation.getRoot()
Return the root expression.
|
Expression |
CodeBlock.lastExpression()
Return the last expression.
|
Expression |
ExprBREAK.lastExpression() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Expression> |
ExprCHOICE.getConditions()
Return the conditions.
|
java.util.List<Expression> |
AbstractExprFunction.getExpressions() |
java.util.List<Expression> |
CodeBlock.getExpressions()
Return the expressions.
|
java.util.List<Expression> |
ExprArray.getExpressions() |
java.util.List<Expression> |
ExprCHOICE.getExpressions() |
Modifier and Type | Method and Description |
---|---|
void |
ExprCHOICE.addCondition(Expression cond) |
void |
AbstractExprFunction.addExpression(Expression expr) |
void |
CodeBlock.addExpression(Expression expr)
Add an expression to the block.
|
void |
ExprATAN2.addExpression(Expression expr) |
void |
ExprArray.addExpression(Expression expr) |
void |
ExprCHOICE.addExpression(Expression expr) |
void |
ExprFORMAT.addExpression(Expression expr) |
void |
ExprPOW.addExpression(Expression expr) |
boolean |
CodeBlock.replaceLastExpression(Expression expr)
Replace the last expression of the block.
|
void |
ExprWHILE.setCondition(Expression cond) |
void |
AbstractScalarAssignment.setExpression(Expression expr) |
void |
ExprABS.setExpression(Expression expr) |
void |
ExprACOS.setExpression(Expression expr) |
void |
ExprASIN.setExpression(Expression expr) |
void |
ExprATAN.setExpression(Expression expr) |
void |
ExprArrayAffect.setExpression(Expression expr) |
void |
ExprArrayIndex.setExpression(Expression expr) |
void |
ExprCEIL.setExpression(Expression expr) |
void |
ExprCOS.setExpression(Expression expr) |
void |
ExprECHO.setExpression(Expression expr) |
void |
ExprFLOOR.setExpression(Expression expr) |
void |
ExprNOT.setExpression(Expression expr) |
void |
ExprSIGN.setExpression(Expression expr) |
void |
ExprSIN.setExpression(Expression expr) |
void |
ExprSQRT.setExpression(Expression expr) |
void |
ExprTAN.setExpression(Expression expr) |
void |
ExprToDegrees.setExpression(Expression expr) |
void |
ExprToRadians.setExpression(Expression expr) |
void |
ExprWHILE.setExpression(Expression expr) |
void |
ParsedEquation.setExpression(Expression expr) |
void |
AbstractAryExpression.setExpression1(Expression expr1) |
void |
AbstractAryExpression.setExpression2(Expression expr2) |
void |
ExprArrayAffect.setIndex(Expression index)
Set the index of the array to assign.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractExprFunction.setExpressions(java.util.List<Expression> exprs) |
void |
CodeBlock.setExpressions(java.util.List<Expression> expressions)
Set the expressions.
|
void |
ExprArray.setExpressions(java.util.List<Expression> exprs) |
Modifier and Type | Interface and Description |
---|---|
interface |
AryExpression
Represent an expression with two predicates, as for example AND.
|
interface |
Equation
An Equation interface.
|
interface |
MultipleAryExpression
An expression with an indeterminate number of predicates.
|
interface |
UnaryExpression
Represent an expression with one predicate, as for example NOT.
|
interface |
Value
A value element interface, which can be a Constant or a Variable.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractExpression
An abstract expression contains
eval() methods which cefault to eval() . |
class |
AbstractValue
An abstract value, used for Constants and variables.
|
class |
Constant
Represent a Constant.
|
class |
LocalConstant
Represent a local constant.
|
class |
LocalVariable
Represent a Local Variable.
|
class |
Structure
Represent an instance of a Structure.
|
static class |
Structure.Field
Represent a structure field.
|
class |
Variable
Represent a Variable.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
AbstractExpression.root |
Modifier and Type | Method and Description |
---|---|
Expression |
AbstractValue.getExpression() |
Expression |
Equation.getExpression()
Return the equation associated expression.
|
default Expression |
Expression.getExpression()
Return the associated expression.
|
Expression |
UnaryExpression.getExpression() |
Expression |
AryExpression.getExpression1()
Return the first expression.
|
Expression |
AryExpression.getExpression2()
Return the second expression.
|
Expression |
AbstractExpression.getRoot()
Return the root expression.
|
Expression |
Expression.getRoot()
Return the root expression.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Expression> |
MultipleAryExpression.getExpressions() |
Modifier and Type | Method and Description |
---|---|
void |
MultipleAryExpression.addExpression(Expression expr) |
void |
UnaryExpression.setExpression(Expression expr) |
void |
AryExpression.setExpression1(Expression expr1)
Set the first expression.
|
void |
AryExpression.setExpression2(Expression expr2)
Set the second expression.
|
void |
AbstractExpression.setRoot(Expression root)
Set the root expression.
|
Modifier and Type | Method and Description |
---|---|
void |
MultipleAryExpression.setExpressions(java.util.List<Expression> exprs) |
Constructor and Description |
---|
AbstractExpression(Expression root) |
AbstractValue(Expression root) |
Constant(Expression root,
java.lang.Object value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionCombiner.add(Expression expr1,
Expression expr2)
Add an expression to another.
|
Expression |
ExpressionCombiner.add(Expression expr,
float value)
Add an expression and a float constant.
|
Expression |
ExpressionCombiner.add(Expression expr,
int value)
Add an expression and an integer constant.
|
Expression |
ExpressionCombiner.add(Expression expr,
java.lang.String value)
Add an expression and a String constant.
|
Expression |
ExpressionCombiner.createArray(Expression... exprs)
Create an array expression.
|
Expression |
ExpressionCombiner.divide(Expression expr1,
Expression expr2)
Divide an expression by another.
|
Expression |
ExpressionCombiner.divide(Expression expr,
float value)
Divide an expression by a float constant.
|
Expression |
ExpressionCombiner.divide(Expression expr,
int value)
Divide an expression by an integer constant.
|
Expression |
ExpressionCombiner.multiply(Expression expr1,
Expression expr2)
Multiply an expression with another.
|
Expression |
ExpressionCombiner.multiply(Expression expr,
float value)
Multiply an expression by a float constant.
|
Expression |
ExpressionCombiner.multiply(Expression expr,
int value)
Multiply an expression by an integer constant.
|
Expression |
ExpressionCombiner.replace(Expression expr,
java.lang.String varName,
Expression replacedExpr)
Replace a variable in an expression by another sub-expression.
|
Expression |
ExpressionCombiner.replaceVariable(Expression expr,
java.lang.String varName,
java.lang.String varToReplace)
Replace a variable in an expression by another variable.
|
Expression |
ExpressionSimplifier.simplify(Expression expr)
Simplify an expression.
|
Expression |
ExpressionCombiner.substract(Expression expr1,
Expression expr2)
Subtract an expression to another.
|
Expression |
ExpressionCombiner.substract(Expression expr,
float value)
Subtract an expression by a float constant.
|
Expression |
ExpressionCombiner.substract(Expression expr,
int value)
Subtract an expression and an integer constant.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionCombiner.add(Expression expr1,
Expression expr2)
Add an expression to another.
|
Expression |
ExpressionCombiner.add(Expression expr,
float value)
Add an expression and a float constant.
|
Expression |
ExpressionCombiner.add(Expression expr,
int value)
Add an expression and an integer constant.
|
Expression |
ExpressionCombiner.add(Expression expr,
java.lang.String value)
Add an expression and a String constant.
|
Constant |
ExpressionAnalyser.asConstant(Expression expr)
Return the Expression as a Constant or null if this is not a Constant.
|
Variable |
ExpressionAnalyser.asVariable(Expression expr)
Return the Expression as a Variable or null if this is not a Variable.
|
Expression |
ExpressionCombiner.createArray(Expression... exprs)
Create an array expression.
|
Expression |
ExpressionCombiner.divide(Expression expr1,
Expression expr2)
Divide an expression by another.
|
Expression |
ExpressionCombiner.divide(Expression expr,
float value)
Divide an expression by a float constant.
|
Expression |
ExpressionCombiner.divide(Expression expr,
int value)
Divide an expression by an integer constant.
|
java.lang.String |
ExpressionExporter.export(Expression expr)
Export the expression as a readable String.
|
java.util.Map<java.lang.String,Variable> |
ExpressionAnalyser.getLocalVariables(Expression expr)
Analyse an Expression to get the Map of local Variables which are defined in this expression.
|
java.util.Map<java.lang.String,Variable> |
ExpressionAnalyser.getVariables(Expression expr)
Analyse an Expression to get the Map of Variables which are defined in this expression.
|
java.util.Map<java.lang.String,Variable> |
ExpressionAnalyser.getVariables(Expression expr,
boolean includeLocals)
Analyse an Expression to get the Map of Variables which are defined in this expression.
|
java.util.List<Variable> |
ExpressionAnalyser.getVariablesList(Expression expr)
Analyse an Expression to get the list of Variables which are defined in this expression.
|
boolean |
ExpressionAnalyser.isConstant(Expression expr)
Return true if an Expression is a constant.
|
boolean |
ExpressionAnalyser.isVariable(Expression expr)
Return true if an Expression is a variable.
|
Expression |
ExpressionCombiner.multiply(Expression expr1,
Expression expr2)
Multiply an expression with another.
|
Expression |
ExpressionCombiner.multiply(Expression expr,
float value)
Multiply an expression by a float constant.
|
Expression |
ExpressionCombiner.multiply(Expression expr,
int value)
Multiply an expression by an integer constant.
|
Expression |
ExpressionCombiner.replace(Expression expr,
java.lang.String varName,
Expression replacedExpr)
Replace a variable in an expression by another sub-expression.
|
Expression |
ExpressionCombiner.replaceVariable(Expression expr,
java.lang.String varName,
java.lang.String varToReplace)
Replace a variable in an expression by another variable.
|
Expression |
ExpressionSimplifier.simplify(Expression expr)
Simplify an expression.
|
Expression |
ExpressionCombiner.substract(Expression expr1,
Expression expr2)
Subtract an expression to another.
|
Expression |
ExpressionCombiner.substract(Expression expr,
float value)
Subtract an expression by a float constant.
|
Expression |
ExpressionCombiner.substract(Expression expr,
int value)
Subtract an expression and an integer constant.
|
Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence