public class VariableExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected Variable |
variable
The variable.
|
| Constructor and Description |
|---|
VariableExpression(Variable value)
Create a new variable expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVariable(Variable var)
Test if a variable is contained in the expression.
|
boolean |
equals(java.lang.Object o)
Test if this variable is equal to some object.
|
Variable |
getVariable()
Get the variable.
|
int |
hashCode()
Get the hash code of this variable.
|
java.lang.String |
toString()
Get a string representation of this variable.
|
protected Variable variable
public VariableExpression(Variable value)
public boolean containsVariable(Variable var)
containsVariable in class Expressionvar - The variable.public Variable getVariable()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object