public class WurbletParameterExpression extends Object implements WurbletParameterOperand
WurbletParameter.| Constructor and Description |
|---|
WurbletParameterExpression(WurbletParameterExpression parent)
Creates a new expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOperand(WurbletParameterOperator operator,
WurbletParameterOperand operand)
Adds an operand.
|
List<WurbletParameterOperand> |
getOperands()
Gets the n operands.
|
List<WurbletParameterOperator> |
getOperators()
Gets the n-1 operators.
|
WurbletParameterExpression |
getParent()
Gets the parent expression.
|
boolean |
needParenthesesAfterAndOperator()
Returns whether expression must be enclosed in parentheses after an AND operator.
|
String |
toCode(CodeGenerator<Object> generator)
Generates the code.
|
String |
toString() |
public WurbletParameterExpression(WurbletParameterExpression parent)
parent - optional parent expression, null if this is the top level expressionpublic WurbletParameterExpression getParent()
public List<WurbletParameterOperand> getOperands()
public List<WurbletParameterOperator> getOperators()
public void addOperand(WurbletParameterOperator operator, WurbletParameterOperand operand) throws org.wurbelizer.wurbel.WurbelException
operator - the operator, null defaults to ADDoperand - the operandorg.wurbelizer.wurbel.WurbelException - if failedpublic boolean needParenthesesAfterAndOperator()
public String toCode(CodeGenerator<Object> generator) throws org.wurbelizer.wurbel.WurbelException
generator - the code generatororg.wurbelizer.wurbel.WurbelException - if code generation failedCopyright © 2016 Krake Softwaretechnik. All rights reserved.