|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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
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. |
void |
setJavadoc(Javadoc javadoc)
Sets or clears the Javadoc comment node. |
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 invalid
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |