
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.
|
getTargetmakeReturnStatement, makeStatementgetSourceInfo, 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)
Copyright © 2018. All rights reserved.