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 Summary
Constructors Constructor Description VariableExpression(Variable value)
Create a new variable expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsVariable(Variable var)
Test if a variable is contained in the expression.boolean
equals(java.lang.Object o)
Test if this variable is equal to some object.Variable
getVariable()
Get the variable.int
hashCode()
Get the hash code of this variable.java.lang.String
toString()
Get a string representation of this variable.
-
-
-
Field Detail
-
variable
protected Variable variable
The variable.
-
-
Constructor Detail
-
VariableExpression
public VariableExpression(Variable value)
Create a new variable expression.
-
-
Method Detail
-
containsVariable
public boolean containsVariable(Variable var)
Test if a variable is contained in the expression.- Specified by:
containsVariable
in classExpression
- Parameters:
var
- The variable.- Returns:
- True, when the variable is contained.
-
getVariable
public Variable getVariable()
Get the variable.
-
toString
public java.lang.String toString()
Get a string representation of this variable.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Test if this variable is equal to some object.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Get the hash code of this variable.- Overrides:
hashCode
in classjava.lang.Object
-
-