public static final class Java.FieldAccess extends Java.Lvalue
Java.ArrayLength
,
e.g. "myArray.length".)Modifier and Type | Field and Description |
---|---|
IClass.IField |
field
The field within the class or instance identified by the
lhs . |
Java.Atom |
lhs
The left-hand-side of the field access - either a type or an rvalue (which includes all
lvalues).
|
NOWHERE
Constructor and Description |
---|
FieldAccess(Location location,
Java.Atom lhs,
IClass.IField field) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.AtomVisitor visitor)
|
void |
accept(Visitor.ElementValueVisitor visitor)
Invokes the '
visit...() ' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type. |
void |
accept(Visitor.LvalueVisitor visitor)
|
void |
accept(Visitor.RvalueVisitor visitor)
|
String |
toString() |
toLvalue
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
public final Java.Atom lhs
public final IClass.IField field
lhs
.public FieldAccess(Location location, Java.Atom lhs, IClass.IField field)
public void accept(Visitor.AtomVisitor visitor)
Java.Atom
public void accept(Visitor.RvalueVisitor visitor)
Java.Rvalue
accept
in class Java.Rvalue
public void accept(Visitor.LvalueVisitor visitor)
Java.Lvalue
accept
in class Java.Lvalue
public void accept(Visitor.ElementValueVisitor visitor)
Java.ElementValue
visit...()
' method of Visitor.ElementValueVisitor
for the concrete Java.ElementValue
type.Copyright © 2001–2016. All rights reserved.