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 Expressionvar - The variable.public java.lang.Object getValue()
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