|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.Expression
org.eclipse.jdt.core.dom.SuperFieldAccess
public class SuperFieldAccess
Simple or qualified "super" field access expression AST node type.
SuperFieldAccess: [ ClassName . ] super . Identifier
See FieldAccess
for guidelines on handling other expressions
that resemble qualified names.
FieldAccess
Field Summary | |
---|---|
static ChildPropertyDescriptor |
NAME_PROPERTY
The "name" structural property of this node type. |
static ChildPropertyDescriptor |
QUALIFIER_PROPERTY
The "qualifier" structural property of this node type. |
Method Summary | |
---|---|
SimpleName |
getName()
Returns the name of the field accessed in this "super" field access expression. |
Name |
getQualifier()
Returns the qualifier of this "super" field access expression, or null if there is none. |
static java.util.List |
propertyDescriptors(int apiLevel)
Returns a list of structural property descriptors for this node type. |
IVariableBinding |
resolveFieldBinding()
Resolves and returns the binding for the field accessed by this expression. |
void |
setName(SimpleName fieldName)
Sets the name of the field accessed in this "super" field access expression. |
void |
setQualifier(Name name)
Sets or clears the qualifier of this "super" field access expression. |
Methods inherited from class org.eclipse.jdt.core.dom.Expression |
---|
resolveBoxing, resolveConstantExpressionValue, resolveTypeBinding, resolveUnboxing |
Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
---|
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, hashCode, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ChildPropertyDescriptor QUALIFIER_PROPERTY
public static final ChildPropertyDescriptor NAME_PROPERTY
Method Detail |
---|
public static java.util.List propertyDescriptors(int apiLevel)
apiLevel
- the API level; one of the
AST.JLS*
constants
StructuralPropertyDescriptor
)public Name getQualifier()
null
if there is none.
null
if there is nonepublic void setQualifier(Name name)
name
- the qualifier name node, or null
if
there is none
java.lang.IllegalArgumentException
- if:
public SimpleName getName()
public IVariableBinding resolveFieldBinding()
Note that bindings are generally unavailable unless requested when the AST is being built.
null
if the binding cannot
be resolvedpublic void setName(SimpleName fieldName)
fieldName
- the field name
java.lang.IllegalArgumentException
- if:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |