|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Field
is an immutable representation of a Java field
access. It consists of field name and may also have either a
Type
or an Expr
containing the field being
accessed.
Method Summary | |
FieldInstance |
fieldInstance()
Get the type object for the field. |
Field |
fieldInstance(FieldInstance fi)
Set the type object for the field. |
boolean |
isTargetImplicit()
Returns whether the target of this field is implicit, that is if the target is either "this" or a classname, and the source code did not explicitly provide a target. |
java.lang.String |
name()
Get the field's name. |
Field |
name(java.lang.String name)
Set the field's name. |
Receiver |
target()
Get the field's container object or type. |
Field |
target(Receiver target)
Set the field's container object or type. |
Field |
targetImplicit(boolean implicit)
Set whether the target of the field is implicit. |
Methods inherited from interface polyglot.ast.Variable |
flags |
Methods inherited from interface polyglot.ast.Expr |
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
Methods inherited from interface polyglot.ast.Typed |
type |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
Method Detail |
public FieldInstance fieldInstance()
public Field fieldInstance(FieldInstance fi)
public Receiver target()
public Field target(Receiver target)
public boolean isTargetImplicit()
public Field targetImplicit(boolean implicit)
public java.lang.String name()
public Field name(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |