public class FieldAccess extends Suffix
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The name of the field.
|
Constructor and Description |
---|
FieldAccess(java.lang.String name)
Create a new field 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 field access is equal to some object.
|
java.lang.String |
getName()
Get the name of the field.
|
int |
hashCode()
Get the hash code of this field access.
|
java.lang.String |
toString()
Get a string representation of this field access.
|
public FieldAccess(java.lang.String name)
name
- The field name.public boolean containsVariable(Variable var)
containsVariable
in class Suffix
var
- The variable.public java.lang.String getName()
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