public class Variable extends Object
| Constructor and Description |
|---|
Variable() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the variable.
|
Expression |
getValue()
Returns the value of the variable
|
boolean |
isDefaultValue()
Defines if the given value is a default only.
|
void |
setDefaultValue(boolean defaultValue)
Sets if the variable was defined using "!
|
void |
setName(String name)
Sets the name of the variable (without $).
|
void |
setValue(Expression value)
Sets the value of the variable.
|
String |
toString() |
public void setName(String name)
name - the name of the variablepublic String getName()
public Expression getValue()
public void setValue(Expression value)
value - the expression defining the variablepublic boolean isDefaultValue()
public void setDefaultValue(boolean defaultValue)
defaultValue - sets the default flag of the variableCopyright © 2016. All rights reserved.