public class MethodAccess extends Suffix
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The name of the method.
|
protected Expression[] |
parametervalues
The parameter value expressions.
|
Constructor and Description |
---|
MethodAccess(java.lang.String name,
Expression[] parametervalues)
Create a new method access.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsVariable(Variable var)
Test if a variable is contained in the suffix.
|
boolean |
equals(java.lang.Object o)
Test if this method access is equal to some object.
|
java.lang.String |
getName()
Get the name of the method.
|
Expression[] |
getParameterValues()
Get the parameter values expressions (if any).
|
int |
hashCode()
Get the hash code of this unary expression.
|
java.lang.String |
toString()
Get a string representation of this method access.
|
protected java.lang.String name
protected Expression[] parametervalues
public MethodAccess(java.lang.String name, Expression[] parametervalues)
name
- The method name.parametervalues
- Expressions for the parameter values (if any).public boolean containsVariable(Variable var)
containsVariable
in class Suffix
var
- The variable.public java.lang.String getName()
public Expression[] getParameterValues()
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