|
Eclipse JDT Release 3.0 |
||||||||||
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. |
SimpleName |
getName()
Returns the name of the type declared in this type declaration. |
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). |
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, getModifiers, 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 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, an anonymous class declaration, or an enumeration constant declaration.
true
if this type declaration is a child of
a type declaration node, a class instance creation node, or an
enum constant declaration, 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
)
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |