Class UnaryExpression
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Expression
- 
- jadex.rules.parser.conditions.javagrammar.UnaryExpression
 
 
- 
 public class UnaryExpression extends Expression An unary operation operates on one value.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringoperatorThe operator.static java.lang.StringOPERATOR_BNOTThe bitwise not operator "~".static java.lang.StringOPERATOR_MINUSThe (unary) minus operator "-".static java.lang.StringOPERATOR_NOTThe not operator "!".protected ExpressionvalueThe value expression.
 - 
Constructor SummaryConstructors Constructor Description UnaryExpression(Expression value, java.lang.String operator)Create a new unary operation.
 - 
Method SummaryAll 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.java.lang.ObjectgetOperator()Get the operator.ExpressiongetValue()Get the value.inthashCode()Get the hash code of this expression.java.lang.StringtoString()Get a string representation of this expression.
 
- 
- 
- 
Field Detail- 
OPERATOR_NOTpublic static final java.lang.String OPERATOR_NOT The not operator "!".- See Also:
- Constant Field Values
 
 - 
OPERATOR_MINUSpublic static final java.lang.String OPERATOR_MINUS The (unary) minus operator "-".- See Also:
- Constant Field Values
 
 - 
OPERATOR_BNOTpublic static final java.lang.String OPERATOR_BNOT The bitwise not operator "~".- See Also:
- Constant Field Values
 
 - 
valueprotected Expression value The value expression.
 - 
operatorprotected java.lang.String operator The operator.
 
- 
 - 
Constructor Detail- 
UnaryExpressionpublic UnaryExpression(Expression value, java.lang.String operator) Create a new unary 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.
 
 - 
getValuepublic Expression getValue() Get the value.
 - 
getOperatorpublic java.lang.Object getOperator() Get the operator.
 - 
toStringpublic java.lang.String toString() Get a string representation of this expression.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this expression is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of this expression.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-