public class ExpressionVariable extends AbstractExpression
getByName(<name>) method.| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The variable name.
|
DEFAULT_PRECEDENCE, parent, precedenceFEATURE_PRECEDENCE| Constructor and Description |
|---|
ExpressionVariable(IExpressionFactory parent,
String name)
Creates an expression to access a variable.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(IContext context,
boolean silent)
Given a context, evaluates the expression.
|
String |
getName()
Gets the variable name.
|
void |
setName(String name)
Sets the variable name.
|
evaluate, getParent, getPrecedence, setPrecedenceprotected String name
public ExpressionVariable(IExpressionFactory parent, String name)
parent - The expression factory.name - The variable name.public String getName()
public void setName(String name)
name - The name.public Object evaluate(IContext context, boolean silent) throws ExpressionException
IExpressioncontext - A contextual information.silent - true, for evaluation without exceptions,
false, otherwise.ExpressionException - On evaluation errors.Copyright © 2016. All rights reserved.