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 |
---|---|
BodyDeclaration<?> |
clone() |
NodeList<AnnotationExpr> |
getAnnotations() |
BodyDeclarationMetaModel |
getMetaModel() |
List<NodeList<?>> |
getNodeLists()
The list of NodeLists owned by this node.
|
boolean |
remove(Node node) |
T |
setAnnotations(NodeList<AnnotationExpr> annotations) |
addOrphanComment, equals, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeOrphanComment, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
addAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
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
public BodyDeclaration<?> clone()
public BodyDeclarationMetaModel getMetaModel()
getMetaModel
in class Node
Copyright © 2007–2017. All rights reserved.