Class CastExpression
- java.lang.Object
-
- jadex.rules.parser.conditions.javagrammar.Expression
-
- jadex.rules.parser.conditions.javagrammar.CastExpression
-
public class CastExpression extends Expression
An unary operation operates on one value.
-
-
Field Summary
Fields Modifier and Type Field Description protected OAVObjectTypetypeThe cast type.protected ExpressionvalueThe value expression.
-
Constructor Summary
Constructors Constructor Description CastExpression(OAVObjectType type, Expression value)Create a new unary operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsVariable(Variable var)Test if a variable is contained in the expression.booleanequals(java.lang.Object o)Test if this expression is equal to some object.OAVObjectTypegetType()Get the type.ExpressiongetValue()Get the value.inthashCode()Get the hash code of this expression.java.lang.StringtoString()Get a string representation of this expression.
-
-
-
Field Detail
-
type
protected OAVObjectType type
The cast type.
-
value
protected Expression value
The value expression.
-
-
Constructor Detail
-
CastExpression
public CastExpression(OAVObjectType type, Expression value)
Create a new unary operation.
-
-
Method Detail
-
containsVariable
public boolean containsVariable(Variable var)
Test if a variable is contained in the expression.- Specified by:
containsVariablein classExpression- Parameters:
var- The variable.- Returns:
- True, when the variable is contained.
-
getValue
public Expression getValue()
Get the value.
-
getType
public OAVObjectType getType()
Get the type.
-
toString
public java.lang.String toString()
Get a string representation of this expression.- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Test if this expression is equal to some object.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Get the hash code of this expression.- Overrides:
hashCodein classjava.lang.Object
-
-