Class LiteralExpression
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Expression
- 
- jadex.rules.parser.conditions.javagrammar.LiteralExpression
 
 
- 
 public class LiteralExpression extends Expression A literal is a constant value.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.ObjectvalueThe literal value.
 - 
Constructor SummaryConstructors Constructor Description LiteralExpression(java.lang.Object value)Create a new literal.
 - 
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 value is equal to some object.java.lang.ObjectgetValue()Get the value.inthashCode()Get the hash code of this variable.java.lang.StringtoString()Get a string representation of this value.
 
- 
- 
- 
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 java.lang.Object getValue() Get the value.
 - 
toStringpublic java.lang.String toString() Get a string representation of this value.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this value 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
 
 
- 
 
-