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 Expression
var
- The variable.public Variable getVariable()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object