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