public abstract class BodyDeclaration<T extends Node> extends Node implements NodeWithAnnotations<T>
Node.ObserverRegistrationMode
ABSOLUTE_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, isPositionedAfter, isPositionedBefore, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
public 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()
Node
getNodeLists
in class Node
Copyright © 2007–2016. All rights reserved.