public class Expression extends Object implements ExpressionArgument
| Constructor and Description |
|---|
Expression()
Expression constructor.
|
Expression(Expression expression)
Copy constructor to clone the passed expression stack.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ExpressionArgument arg)
Adds a new expression argument to the stack.
|
ExpressionArgument |
evaluate(Expression expression,
Object input)
This method is called when an argument in the expression stack is
evaluated.
|
ExpressionArgument |
evaluate(Object input)
Evaluate the expression with the provided input.
|
ExpressionArgument |
get(int index)
Gets the expression argument at the specified index.
|
int |
size()
Gets the size of the stack.
|
String |
toString() |
public Expression()
public Expression(Expression expression)
expression - Expression stack to clone.public void add(ExpressionArgument arg)
arg - The new ExpressionArgument to add.public ExpressionArgument get(int index)
index - Index of the expression argument to return.public int size()
public ExpressionArgument evaluate(Object input)
input - Input to be evaluated.public ExpressionArgument evaluate(Expression expression, Object input)
ExpressionArgumentExpression#evaluate(Object input) is used to
evaluate the entire stack.evaluate in interface ExpressionArgumentexpression - The expression stack the argument is in.input - The input argument to the expression stack.ExpressionCopyright 2004-2017 Solace Corporation. All rights reserved.