Package | Description |
---|---|
org.expressionj.expr |
Contain classes that are used to compute equations.
|
org.expressionj.expr.parser |
Produced by javaCC.
|
org.expressionj.model |
Contains fundamental classes used for expressions.
|
org.expressionj.util |
Contains several utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected Variable |
ExprArrayAffect.var |
Modifier and Type | Method and Description |
---|---|
Variable |
ExprArrayAffect.getArray() |
Variable |
ParsedEquation.getDollarVariable(java.lang.String dollarName) |
Variable |
ExprDecrement.getVariable() |
Variable |
ExprIncrement.getVariable()
Return the variable to increment.
|
Variable |
AbstractScalarAssignment.getVariable(java.lang.String varName) |
Variable |
CodeBlock.getVariable(java.lang.String varName) |
Variable |
ExprArrayAffect.getVariable(java.lang.String varName) |
Variable |
ExprBREAK.getVariable(java.lang.String varName) |
Variable |
ExprCHOICE.getVariable(java.lang.String varName) |
Variable |
ExprDecrement.getVariable(java.lang.String varName) |
Variable |
ExprIncrement.getVariable(java.lang.String varName) |
Variable |
ExprWHILE.getVariable(java.lang.String varName) |
Variable |
ParsedEquation.getVariable(java.lang.String varName) |
Variable |
CodeBlock.getVariable(java.lang.String varName,
boolean includeLocals)
Return a variable declared by the expression.
|
Variable |
ParsedEquation.getVariable(java.lang.String varName,
boolean createIfAbsent)
Return a variable declared by the expression.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Variable> |
AbstractAryExpression.getVariables() |
java.util.Map<java.lang.String,Variable> |
AbstractExprFunction.getVariables() |
java.util.Map<java.lang.String,Variable> |
AbstractUnaryExpression.getVariables() |
java.util.Map<java.lang.String,Variable> |
CodeBlock.getVariables() |
java.util.Map<java.lang.String,Variable> |
ExprArray.getVariables() |
java.util.Map<java.lang.String,Variable> |
ExprBREAK.getVariables() |
java.util.Map<java.lang.String,Variable> |
ExprCHOICE.getVariables() |
java.util.Map<java.lang.String,Variable> |
ExprDecrement.getVariables() |
java.util.Map<java.lang.String,Variable> |
ExprIncrement.getVariables() |
java.util.Map<java.lang.String,Variable> |
ExprWHILE.getVariables() |
java.util.Map<java.lang.String,Variable> |
ParsedEquation.getVariables()
Return the variables used by this expression.
|
java.util.Map<java.lang.String,Variable> |
ParsedEquation.getVariables(boolean includeLocals)
Return the variables used by this expression, possibly including local variables.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractAssignment.addVariable(Variable var)
Add a variable.
|
void |
ParsedEquation.addVariable(Variable var) |
void |
AbstractAssignment.addVariable(Variable var,
boolean isCreated)
Add a variable.
|
void |
ExprArrayAffect.setArray(Variable var) |
void |
ExprDecrement.setVariable(Variable var) |
void |
ExprIncrement.setVariable(Variable var)
Set the variable to increment.
|
Modifier and Type | Method and Description |
---|---|
void |
ParsedEquation.setVariables(java.util.List<Variable> varsList) |
Modifier and Type | Method and Description |
---|---|
static Equation |
EquationParser.parse(java.io.File file,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
static Equation |
EquationParser.parse(java.lang.String text,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
static Equation |
EquationParser.parse(java.net.URL url,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
Variable |
Constant.getVariable(java.lang.String varName)
Return null.
|
default Variable |
Expression.getVariable(java.lang.String varName)
Return a variable declared by the expression.
|
Variable |
Variable.getVariable(java.lang.String varName)
Return the value of the variable.
|
default Variable |
Expression.getVariable(java.lang.String varName,
boolean includeLocals)
Return a variable declared by the expression.
|
default Variable |
Expression.removeVariable(java.lang.String varName)
Remove a variable from the expression.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Variable> |
Constant.getVariables()
Return an empty Map.
|
java.util.Map<java.lang.String,Variable> |
Expression.getVariables()
Return the variables used by this expression.
|
java.util.Map<java.lang.String,Variable> |
Variable.getVariables()
Return the Map of variables.
|
default java.util.Map<java.lang.String,Variable> |
Expression.getVariables(boolean includeLocals)
Return the variables used by this expression, possibly including local variables.
|
Modifier and Type | Method and Description |
---|---|
static Equation |
ExpressionJ.parse(java.io.File file,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
static Equation |
ExpressionJ.parse(java.lang.String text,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
static Equation |
ExpressionJ.parse(java.net.URL url,
java.util.List<Variable> vars)
Parse an equation, passing to the parser a list of global variables.
|
Modifier and Type | Method and Description |
---|---|
Variable |
ExpressionAnalyser.asVariable(Expression expr)
Return the Expression as a Variable or null if this is not a Variable.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence