public class LiteralExpression extends Expression
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
value
The literal value.
|
Constructor and Description |
---|
LiteralExpression(java.lang.Object value)
Create a new literal.
|
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 value is equal to some object.
|
java.lang.Object |
getValue()
Get the value.
|
int |
hashCode()
Get the hash code of this variable.
|
java.lang.String |
toString()
Get a string representation of this value.
|
public LiteralExpression(java.lang.Object value)
public boolean containsVariable(Variable var)
containsVariable
in class Expression
var
- The variable.public java.lang.Object getValue()
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