|
||||||||||
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.Name
org.eclipse.jdt.core.dom.QualifiedName
public class QualifiedName
AST node for a qualified name. A qualified name is defined recursively as a simple name preceded by a name, which qualifies it. Expressing it this way means that the qualifier and the simple name get their own AST nodes.
QualifiedName: Name . SimpleName
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 part of this qualified name. |
Name |
getQualifier()
Returns the qualifier part of this qualified name. |
static java.util.List |
propertyDescriptors(int apiLevel)
Returns a list of structural property descriptors for this node type. |
void |
setName(SimpleName name)
Sets the name part of this qualified name to the given simple name. |
void |
setQualifier(Name qualifier)
Sets the qualifier of this qualified name to the given name. |
Methods inherited from class org.eclipse.jdt.core.dom.Name |
---|
getFullyQualifiedName, isQualifiedName, isSimpleName, resolveBinding |
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()
public void setQualifier(Name qualifier)
qualifier
- the qualifier of this qualified name
java.lang.IllegalArgumentException
- if:
public SimpleName getName()
public void setName(SimpleName name)
name
- the identifier of this qualified name
java.lang.IllegalArgumentException
- if:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |