public class ExprECHO extends AbstractUnaryNumericExpression
EchoLogger class, or to the standard Output Stream if the PrintStream is undefined.
Note that the result of this expression is the content in the echo expression, so that for example: echo(2) will
both echo the value 2 on the PrintStream and return 2.EchoLoggertypeexprblock, rootSTRUCT_ARRAY, STRUCT_SCALAR, STRUCT_STRUCTURE, TYPE_BOOL, TYPE_DYNAMIC, TYPE_FLOAT, TYPE_INTEGER, TYPE_NUMERIC, TYPE_STRING, TYPE_UNDEF| Constructor and Description |
|---|
ExprECHO(Expression root) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.Object |
eval()
Evaluate the expression.
|
Expression |
getExpression()
Return the associated expression.
|
java.lang.String |
getExpressionName()
Return the expression name.
|
short |
getResultStructure()
Return the structure of the result for the expression.
|
void |
setExpression(Expression expr) |
getResultTypegetVariablesevalAsBoolean, evalAsFloat, evalAsInt, getParentBlock, getRoot, setParentBlock, setRootequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevalAsBoolean, evalAsFloat, evalAsInt, getLocalVariable, getLocalVariables, getParentBlock, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlockpublic ExprECHO(Expression root)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface Expressionclone in class AbstractExpressionjava.lang.CloneNotSupportedExceptionpublic java.lang.String getExpressionName()
Expressionpublic void setExpression(Expression expr)
public Expression getExpression()
Expressionpublic java.lang.Object eval()
throws java.lang.ArithmeticException
Expressionjava.lang.ArithmeticExceptionpublic short getResultStructure()
ExpressionExpressionType.STRUCT_SCALAR: a scalar valueExpressionType.STRUCT_ARRAY: an array valuegetResultStructure in interface ExpressiongetResultStructure in class AbstractUnaryNumericExpressionCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence