public class NamedParameter extends Object implements Expression
This is only used if the parameter is referenced by name - which is not supported by built-in functions.
| Constructor and Description |
|---|
NamedParameter(String name,
Expression value)
Creates a new parameter for the given name and value.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
eval(Scope scope,
Generator gen)
If possible the expression is evaluated and a simplified expression is returned.
|
boolean |
isConstant()
Determines if this expression is constant or if it depends on variables.
|
String |
toString() |
public NamedParameter(String name, Expression value)
name - th name of the parameter.value - the value to be used for the parameterpublic boolean isConstant()
ExpressionisConstant in interface Expressionpublic Expression eval(Scope scope, Generator gen)
Expressioneval in interface Expressionscope - the scope used to resolve variables.gen - the generator used to evaluate functionsCopyright © 2016. All rights reserved.