public abstract class BodyDeclaration<T extends Node> extends Node implements NodeWithAnnotations<T>
Node.ObserverRegistrationModeABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration| Constructor and Description |
|---|
BodyDeclaration() |
BodyDeclaration(NodeList<AnnotationExpr> annotations) |
BodyDeclaration(Range range,
NodeList<AnnotationExpr> annotations) |
| Modifier and Type | Method and Description |
|---|---|
NodeList<AnnotationExpr> |
getAnnotations() |
List<NodeList<?>> |
getNodeLists()
The list of NodeLists owned by this node.
|
T |
setAnnotations(NodeList<AnnotationExpr> annotations) |
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, hasJavaDocComment, isPositionedAfter, isPositionedBefore, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeOrphanComment, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregisterfinalize, getClass, notify, notifyAll, wait, wait, waitaddAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotationgetAncestorOfType, setAsParentNodeOf, setAsParentNodeOfpublic BodyDeclaration()
public BodyDeclaration(NodeList<AnnotationExpr> annotations)
public BodyDeclaration(Range range, NodeList<AnnotationExpr> annotations)
public final NodeList<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<T extends Node>public final T setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<T extends Node>annotations - a null value is currently treated as an empty list. This behavior could change in the future,
so please avoid passing nullpublic List<NodeList<?>> getNodeLists()
NodegetNodeLists in class NodeCopyright © 2007–2017. All rights reserved.