
public class JFieldRef extends JVariableRef implements HasEnclosingType
target| Constructor and Description |
|---|
JFieldRef(SourceInfo info,
JExpression instance,
JField field,
JDeclaredType enclosingType) |
JFieldRef(SourceInfo info,
JExpression instance,
JField field,
JDeclaredType enclosingType,
JType overriddenType) |
| Modifier and Type | Method and Description |
|---|---|
JDeclaredType |
getEnclosingType() |
JField |
getField() |
JExpression |
getInstance() |
JType |
getType()
Returns the type of this expression.
|
boolean |
hasClinit() |
boolean |
hasSideEffects() |
void |
resolve(JField newField)
Resolve an external reference during AST stitching.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
getTargetmakeStatementgetSourceInfo, setSourceInfo, toSource, toStringpublic JFieldRef(SourceInfo info, JExpression instance, JField field, JDeclaredType enclosingType)
public JFieldRef(SourceInfo info, JExpression instance, JField field, JDeclaredType enclosingType, JType overriddenType)
public JDeclaredType getEnclosingType()
getEnclosingType in interface HasEnclosingTypepublic JField getField()
public JExpression getInstance()
public JType getType()
HasTypegetType in interface HasTypegetType in class JVariableRefpublic boolean hasClinit()
public boolean hasSideEffects()
hasSideEffects in class JExpressionpublic void resolve(JField newField)
public void traverse(JVisitor visitor, Context ctx)
JVisitabletraverse in interface JVisitablevisitor - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.