Class PrimaryExpression
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Expression
- 
- jadex.rules.parser.conditions.javagrammar.PrimaryExpression
 
 
- 
 public class PrimaryExpression extends Expression A computable value composed of primary value and zero to many suffixes.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExpressionprefixThe prefix value expression.protected Suffix[]suffixesThe suffixes.
 - 
Constructor SummaryConstructors Constructor Description PrimaryExpression(Expression prefix, Suffix[] suffixes)Create a new primary 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 primary expression is equal to some object.ExpressiongetPrefix()Get the prefix value expression.Suffix[]getSuffixes()Get the suffixes.inthashCode()Get the hash code of this primary expression.java.lang.StringtoString()Get a string representation of this primary expression.
 
- 
- 
- 
Field Detail- 
prefixprotected Expression prefix The prefix value expression.
 - 
suffixesprotected Suffix[] suffixes The suffixes.
 
- 
 - 
Constructor Detail- 
PrimaryExpressionpublic PrimaryExpression(Expression prefix, Suffix[] suffixes) Create a new primary 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.
 
 - 
getPrefixpublic Expression getPrefix() Get the prefix value expression.
 - 
getSuffixespublic Suffix[] getSuffixes() Get the suffixes.
 - 
toStringpublic java.lang.String toString() Get a string representation of this primary expression.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this primary expression is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of this primary expression.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-