Class OperationExpression
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Expression
- 
- jadex.rules.parser.conditions.javagrammar.OperationExpression
 
 
- 
 public class OperationExpression extends Expression An operation composes two values.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExpressionleftThe left value expression.protected java.lang.ObjectoperatorThe operator.static IOperatorOPERATOR_ANDThe AND operator (&&).static IOperatorOPERATOR_ORThe OR operator (||).protected ExpressionrightThe right value expression.
 - 
Constructor SummaryConstructors Constructor Description OperationExpression(Expression left, Expression right, IFunction operator)Create a new operation.OperationExpression(Expression left, Expression right, IOperator operator)Create a new operation.
 - 
Method SummaryAll Methods Static 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 operation is equal to some object.static IOperatorgetInverseOperator0(IOperator operator)Get the inverse operator.ExpressiongetLeftValue()Get the left value.java.lang.ObjectgetOperator()Get the operator.ExpressiongetRightValue()Get the right value.inthashCode()Get the hash code of this operation.java.lang.StringtoString()Get a string representation of this operation.
 
- 
- 
- 
Field Detail- 
OPERATOR_ORpublic static final IOperator OPERATOR_OR The OR operator (||).
 - 
OPERATOR_ANDpublic static final IOperator OPERATOR_AND The AND operator (&&).
 - 
leftprotected Expression left The left value expression.
 - 
rightprotected Expression right The right value expression.
 - 
operatorprotected java.lang.Object operator The operator.
 
- 
 - 
Constructor Detail- 
OperationExpressionpublic OperationExpression(Expression left, Expression right, IOperator operator) Create a new operation.
 - 
OperationExpressionpublic OperationExpression(Expression left, Expression right, IFunction operator) Create a new operation.
 
- 
 - 
Method Detail- 
containsVariablepublic boolean containsVariable(Variable var) Test if a variable is contained in the expression.- Specified by:
- containsVariablein class- Expression
- Parameters:
- var- The variable.
- Returns:
- True, when the variable is contained.
 
 - 
getLeftValuepublic Expression getLeftValue() Get the left value.
 - 
getRightValuepublic Expression getRightValue() Get the right value.
 - 
getOperatorpublic java.lang.Object getOperator() Get the operator.
 - 
toStringpublic java.lang.String toString() Get a string representation of this operation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this operation is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of this operation.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-