|
||||||||||
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
public abstract class BodyDeclaration
Abstract base class of all AST nodes that represent body declarations that may appear in the body of some kind of class or interface declaration, including anonymous class declarations.
BodyDeclaration: ClassDeclaration InterfaceDeclaration FunctionDeclaration ConstructorDeclaration FieldDeclaration Initializer
All types of body declarations carry modifiers, although they differ in which modifiers are allowed. Most types of body declarations can carry a doc comment; Initializer is the only ones that does not. The source range for body declarations always includes the doc comment if present.
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 | |
---|---|
JSdoc |
getJavadoc()
Returns the doc comment node. |
ChildPropertyDescriptor |
getJavadocProperty()
Returns structural property descriptor for the "jsdoc" property of this node. |
int |
getModifiers()
Returns the modifiers explicitly specified on this declaration. |
ChildListPropertyDescriptor |
getModifiersProperty()
Returns structural property descriptor for the "modifiers" property of this node. |
java.util.List |
modifiers()
Returns the live ordered list of modifiers and annotations of this declaration . |
void |
setJavadoc(JSdoc docComment)
Sets or clears the doc comment node. |
void |
setModifiers(int modifiers)
Deprecated. Rhis method is replaced by modifiers() which contains a list of a Modifier nodes. |
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 getModifiersProperty()
public final ChildPropertyDescriptor getJavadocProperty()
public JSdoc getJavadoc()
null
if nonepublic void setJavadoc(JSdoc docComment)
docComment
- the doc comment node, or null
if none
java.lang.IllegalArgumentException
- if the doc comment string is invalidpublic int getModifiers()
Modifier
constantsModifier
public void setModifiers(int modifiers)
modifiers()
which contains a list of a Modifier
nodes.
modifiers
- the given modifiers (bit-wise or of Modifier
constants)Modifier
public java.util.List modifiers()
IExtendedModifier
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |