public class PrimaryExpression extends Expression
Modifier and Type | Field and Description |
---|---|
protected Expression |
prefix
The prefix value expression.
|
protected Suffix[] |
suffixes
The suffixes.
|
Constructor and Description |
---|
PrimaryExpression(Expression prefix,
Suffix[] suffixes)
Create a new primary expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsVariable(Variable var)
Test if a variable is contained in the expression.
|
boolean |
equals(java.lang.Object o)
Test if this primary expression is equal to some object.
|
Expression |
getPrefix()
Get the prefix value expression.
|
Suffix[] |
getSuffixes()
Get the suffixes.
|
int |
hashCode()
Get the hash code of this primary expression.
|
java.lang.String |
toString()
Get a string representation of this primary expression.
|
protected Expression prefix
protected Suffix[] suffixes
public PrimaryExpression(Expression prefix, Suffix[] suffixes)
public boolean containsVariable(Variable var)
containsVariable
in class Expression
var
- The variable.public Expression getPrefix()
public Suffix[] getSuffixes()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object