public class CalculatorExpr.SetExprBase.SetExpr
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
ixList |
CalculatorExpr.SetExprBase.SetExpr |
parent |
private java.util.List<CalculatorExpr.Operator> |
unaryOperators |
Modifier | Constructor and Description |
---|---|
|
SetExpr()
Creates a new instance of this class for sub expressions (parenthesis, arguments).
|
private |
SetExpr(CalculatorExpr.SetExprBase.SetExpr parent) |
Modifier and Type | Method and Description |
---|---|
void |
add_addOperation(CalculatorExpr.SetExprBase.SetExpr val)
Designates the end of an add operation.
|
void |
add_boolAndOperation(CalculatorExpr.SetExprBase.SetExpr val)
Designates the end of a AND operation.
|
void |
add_boolOrOperation(CalculatorExpr.SetExprBase.SetExpr val)
Designates the end of a multiplication operation.
|
void |
add_cmpOperation(CalculatorExpr.SetExprBase.SetExpr val) |
void |
add_dataAccess(DataAccess.DataAccessSet val) |
void |
add_divOperation(CalculatorExpr.SetExprBase.SetExpr val)
Designates the end of a multiplication operation.
|
void |
add_multOperation(CalculatorExpr.SetExprBase.SetExpr val)
Designates the end of a multiplication operation.
|
void |
add_parenthesisExpr(CalculatorExpr.SetExprBase.SetExpr val)
Closes an parenthesis expression.
|
void |
add_subOperation(CalculatorExpr.SetExprBase.SetExpr val)
Designates the end of an add operation.
|
private void |
addToOperations() |
private void |
addUnaryToOperations()
Adds the
#actUnaryOperation to the expression statements. |
void |
closeExprPreparation()
This routine must be called at least.
|
CalculatorExpr |
expr() |
CalculatorExpr.SetExprBase.SetExpr |
new_addOperation()
Designates the start of a new adding operation.
|
CalculatorExpr.SetExprBase.SetExpr |
new_boolAndOperation() |
CalculatorExpr.SetExprBase.SetExpr |
new_boolOrOperation() |
CalculatorExpr.SetExprBase.SetExpr |
new_cmpOperation() |
DataAccess.DataAccessSet |
new_dataAccess()
Returns this because all methods of
DataAccess.DataAccessSet are delegated in this class. |
CalculatorExpr.SetExprBase.SetExpr |
new_divOperation() |
CalculatorExpr.SetExprBase.SetExpr |
new_multOperation() |
CalculatorExpr.SetExprBase.SetExpr |
new_parenthesisExpr()
Designates, that a expression in parenthesis is given, which should be calculated first.
|
CalculatorExpr.SetExprBase.SetExpr |
new_subOperation()
Designates the start of a new adding operation.
|
protected DataAccess.DataAccessSet |
newDataAccessSet()
It is override-able to create an derived instance.
|
DataAccess |
onlyDataAccess()
Returns the datapath if the expression contains only a datapath.
|
CalculatorExpr.SetExprBase.SetExpr |
set_boolCheckAndOperation() |
CalculatorExpr.SetExprBase.SetExpr |
set_boolCheckOrOperation() |
void |
set_boolNot(java.lang.String val) |
void |
set_charValue(java.lang.String val)
A character is stored as integer.
|
void |
set_cmpOperator(java.lang.String val) |
void |
set_doubleValue(double val)
Sets a value to the current operation.
|
void |
set_intValue(int val)
Sets a value to the current operation.
|
void |
set_textValue(java.lang.String val) |
void |
set_unaryOperator(java.lang.String op) |
public final CalculatorExpr.SetExprBase.SetExpr parent
private final java.util.List<CalculatorExpr.Operator> unaryOperators
private final int ixList
public SetExpr()
parent
- may be null.private SetExpr(CalculatorExpr.SetExprBase.SetExpr parent)
public CalculatorExpr expr()
public CalculatorExpr.SetExprBase.SetExpr new_parenthesisExpr()
CalculatorExpr.SetExprBase.actOperation
is set to null.
Thus a new set operation will be created at first of the parenthesis expression.
On runtime it forces a push to the stack.public void add_parenthesisExpr(CalculatorExpr.SetExprBase.SetExpr val)
val
- public CalculatorExpr.SetExprBase.SetExpr new_boolOrOperation()
public void add_boolOrOperation(CalculatorExpr.SetExprBase.SetExpr val)
val
- this, unusedpublic CalculatorExpr.SetExprBase.SetExpr set_boolCheckAndOperation()
public CalculatorExpr.SetExprBase.SetExpr set_boolCheckOrOperation()
public CalculatorExpr.SetExprBase.SetExpr new_boolAndOperation()
public void add_boolAndOperation(CalculatorExpr.SetExprBase.SetExpr val)
val
- this, unusedpublic void set_boolNot(java.lang.String val)
public CalculatorExpr.SetExprBase.SetExpr new_cmpOperation()
public void add_cmpOperation(CalculatorExpr.SetExprBase.SetExpr val)
public void set_cmpOperator(java.lang.String val)
public void set_unaryOperator(java.lang.String op)
public CalculatorExpr.SetExprBase.SetExpr new_addOperation()
public void add_addOperation(CalculatorExpr.SetExprBase.SetExpr val)
val
- this, unusedpublic CalculatorExpr.SetExprBase.SetExpr new_subOperation()
public void add_subOperation(CalculatorExpr.SetExprBase.SetExpr val)
val
- this, unusedpublic CalculatorExpr.SetExprBase.SetExpr new_multOperation()
public void add_multOperation(CalculatorExpr.SetExprBase.SetExpr val)
val
- this, unusedpublic CalculatorExpr.SetExprBase.SetExpr new_divOperation()
public void add_divOperation(CalculatorExpr.SetExprBase.SetExpr val)
val
- this, unusedpublic void set_charValue(java.lang.String val)
val
- public void set_intValue(int val)
val
- public void set_doubleValue(double val)
val
- public void set_textValue(java.lang.String val)
protected DataAccess.DataAccessSet newDataAccessSet()
public DataAccess.DataAccessSet new_dataAccess()
DataAccess.DataAccessSet
are delegated in this class.public void add_dataAccess(DataAccess.DataAccessSet val)
public DataAccess onlyDataAccess()
public void closeExprPreparation()
private void addToOperations()
private void addUnaryToOperations()
#actUnaryOperation
to the expression statements.