|
Eclipse JDT Release 3.1 |
|||||||||||
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.BodyDeclaration
org.eclipse.jdt.core.dom.AbstractTypeDeclaration
Abstract subclass for type declaration, enum declaration, and annotation type declaration AST node types.
AbstractTypeDeclaration: TypeDeclaration EnumDeclaration AnnotationTypeDeclaration
Field Summary |
---|
Method Summary | |
---|---|
List |
bodyDeclarations()
Returns the live ordered list of body declarations of this type declaration. |
ChildListPropertyDescriptor |
getBodyDeclarationsProperty()
Returns structural property descriptor for the "bodyDeclarations" property of this node. |
SimpleName |
getName()
Returns the name of the type declared in this type declaration. |
ChildPropertyDescriptor |
getNameProperty()
Returns structural property descriptor for the "name" property of this node. |
boolean |
isLocalTypeDeclaration()
Returns whether this type declaration is a local type. |
boolean |
isMemberTypeDeclaration()
Returns whether this type declaration is a type member. |
boolean |
isPackageMemberTypeDeclaration()
Returns whether this type declaration is a package member (that is, a top-level type). |
ITypeBinding |
resolveBinding()
Resolves and returns the binding for the type declared in this type declaration. |
void |
setName(SimpleName typeName)
Sets the name of the type declared in this type declaration to the given name. |
Methods inherited from class org.eclipse.jdt.core.dom.BodyDeclaration |
---|
getJavadoc, getJavadocProperty, getModifiers, getModifiersProperty, modifiers, setJavadoc, setModifiers |
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, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public final ChildListPropertyDescriptor getBodyDeclarationsProperty()
public final ChildPropertyDescriptor getNameProperty()
public SimpleName getName()
TypeDeclaration
)public void setName(SimpleName typeName)
typeName
- the new type name
IllegalArgumentException
- if:
TypeDeclaration
)public List bodyDeclarations()
BodyDeclaration
)TypeDeclaration
)public boolean isPackageMemberTypeDeclaration()
Note that this is a convenience method that simply checks whether this node's parent is a compilation unit node.
true
if this type declaration is a child of
a compilation unit node, and false
otherwiseTypeDeclaration
)public boolean isMemberTypeDeclaration()
Note that this is a convenience method that simply checks whether this node's parent is a type declaration node or an anonymous class declaration.
true
if this type declaration is a child of
a type declaration node or an anonymous class declaration node,
and false
otherwiseTypeDeclaration
)public boolean isLocalTypeDeclaration()
Note that this is a convenience method that simply checks whether this node's parent is a type declaration statement node.
true
if this type declaration is a child of
a type declaration statement node, and false
otherwiseTypeDeclaration
)public final ITypeBinding resolveBinding()
Note that bindings are generally unavailable unless requested when the AST is being built.
null
if the binding cannot be
resolved
|
Eclipse JDT Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |