Class VariableExpression
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Expression
- 
- jadex.rules.parser.conditions.javagrammar.VariableExpression
 
 
- 
 public class VariableExpression extends Expression An expression consisting of a variable value.
- 
- 
Constructor SummaryConstructors Constructor Description VariableExpression(Variable value)Create a new variable expression.
 - 
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 variable is equal to some object.VariablegetVariable()Get the variable.inthashCode()Get the hash code of this variable.java.lang.StringtoString()Get a string representation of this variable.
 
- 
- 
- 
Field Detail- 
variableprotected Variable variable The variable.
 
- 
 - 
Constructor Detail- 
VariableExpressionpublic VariableExpression(Variable value) Create a new variable expression.
 
- 
 - 
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.
 
 - 
getVariablepublic Variable getVariable() Get the variable.
 - 
toStringpublic java.lang.String toString() Get a string representation of this variable.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this variable is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of this variable.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-