|
Eclipse JDT Pre-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
Abstract base class of all AST nodes that represent body declarations that may appear in the body of a class or interface declaration.
ClassBodyDeclaration: ClassDeclaration InterfaceDeclaration MethodDeclaration ConstructorDeclaration FieldDeclaration Initializer InterfaceBodyDeclaration: ClassDeclaration InterfaceDeclaration MethodDeclaration FieldDeclaration
All types of body declarations carry modifiers, although they differ in which modifiers are allowed. Most types of body declarations can carry a Javadoc comment; Initializer is the only ones that does not. The source range for body declarations always includes the Javadoc comment if present.
| Field Summary |
| Method Summary | |
Javadoc |
getJavadoc()
Returns the Javadoc comment node. |
int |
getModifiers()
Returns the modifiers explicitly specified on this declaration. |
void |
setJavadoc(Javadoc javadoc)
Sets or clears the Javadoc comment node. |
void |
setModifiers(int modifiers)
Sets the modifiers explicitly specified on this declaration. |
| Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
accept, copySubtree, copySubtrees, equals, getAST, getFlags, getLength, getNodeType, getParent, getProperty, getRoot, getStartPosition, properties, setFlags, setProperty, setSourceRange, subtreeBytes, subtreeMatch, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Javadoc getJavadoc()
null if nonepublic void setJavadoc(Javadoc javadoc)
javadoc - the javadoc comment node, or null if none
IllegalArgumentException - if the Java comment string is invalidpublic int getModifiers()
Modifier constantsModifierpublic void setModifiers(int modifiers)
Modifier constants
IllegalArgumentException - if the modifiers are illegalModifier
|
Eclipse JDT Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||