edu.cmu.cs.crystal.tac.eclipse
Class EclipseSuperFieldAccess
java.lang.Object
edu.cmu.cs.crystal.tac.eclipse.EclipseAbstractFieldAccess<SuperFieldAccess>
edu.cmu.cs.crystal.tac.eclipse.EclipseSuperFieldAccess
- All Implemented Interfaces:
- IEclipseFieldAccess
public class EclipseSuperFieldAccess
- extends EclipseAbstractFieldAccess<SuperFieldAccess>
- implements IEclipseFieldAccess
- Author:
- Kevin Bierhoff
EclipseSuperFieldAccess
public EclipseSuperFieldAccess(SuperFieldAccess node,
IEclipseVariableQuery query)
- Parameters:
node
- query
-
getFieldName
public SimpleName getFieldName()
- Description copied from interface:
IEclipseFieldAccess
- Returns the name of the accessed field.
- Specified by:
getFieldName
in interface IEclipseFieldAccess
- Returns:
- Name of the accessed field.
resolveFieldBinding
public IVariableBinding resolveFieldBinding()
- Description copied from interface:
IEclipseFieldAccess
- Resolves the binding for the accessed field.
Bindings can usually be resolved, but the underlying Eclipse
AST admits the possiblity that
null
is returned.
- Specified by:
resolveFieldBinding
in interface IEclipseFieldAccess
- Returns:
- The binding for the accessed field or
null
if
the binding could not be resolved.
isImplicitThisAccess
public boolean isImplicitThisAccess()
- Description copied from interface:
IEclipseFieldAccess
- Indicates whether this is an implicit access to a receiver field
(which could actually be a field of an outer class). Accessing
a static field does not constitute an implicit access to the
receiver in the sense of this method.
- Specified by:
isImplicitThisAccess
in interface IEclipseFieldAccess
- Returns:
true
if this is an implicit access to a receiver field
and false
otherwise.
isExplicitSuperAccess
public boolean isExplicitSuperAccess()
- Description copied from interface:
IEclipseFieldAccess
- Indicates whether this is an explicit super-field access,
super.f
.
The field being accessed may be a static or instance field.
- Specified by:
isExplicitSuperAccess
in interface IEclipseFieldAccess
- Returns:
true
if this is an explicit super-field access,
false
otherwise.