|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.core.dom.ASTNode
org.eclipse.wst.jsdt.core.dom.ProgramElement
org.eclipse.wst.jsdt.core.dom.BodyDeclaration
org.eclipse.wst.jsdt.core.dom.AbstractTypeDeclaration
public abstract class AbstractTypeDeclaration
Abstract subclass for type declaration AST node types. Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary |
---|
Method Summary | |
---|---|
java.util.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.wst.jsdt.core.dom.BodyDeclaration |
---|
getJavadoc, getJavadocProperty, getModifiers, getModifiersProperty, modifiers, setJavadoc, setModifiers |
Methods inherited from class org.eclipse.wst.jsdt.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 |
Method Detail |
---|
public final ChildListPropertyDescriptor getBodyDeclarationsProperty()
public final ChildPropertyDescriptor getNameProperty()
public SimpleName getName()
public void setName(SimpleName typeName)
typeName
- the new type name
java.lang.IllegalArgumentException
- if:
public java.util.List bodyDeclarations()
BodyDeclaration
)public boolean isPackageMemberTypeDeclaration()
Note that this is a convenience method that simply checks whether this node's parent is a javaScript unit node.
true
if this type declaration is a child of
a javaScript unit node, and false
otherwisepublic 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
otherwisepublic 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
otherwisepublic final ITypeBinding resolveBinding()
Note that bindings are generally unavailable unless requested when the AST is being built.
null
if the binding cannot be
resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |