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
Modifier | Constructor and Description |
---|---|
|
BodyDeclaration() |
|
BodyDeclaration(NodeList<AnnotationExpr> annotations) |
protected |
BodyDeclaration(Range range)
This supports
EmptyMemberDeclaration . |
|
BodyDeclaration(Range range,
NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.
|
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, customInitialization, 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, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnit
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public BodyDeclaration()
public BodyDeclaration(NodeList<AnnotationExpr> annotations)
@Generated(value="com.github.javaparser.generator.core.node.MainConstructorGenerator") public BodyDeclaration(Range range, NodeList<AnnotationExpr> annotations)
protected BodyDeclaration(Range range)
EmptyMemberDeclaration
.@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<AnnotationExpr> getAnnotations()
getAnnotations
in interface NodeWithAnnotations<T extends Node>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public T setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations
in interface NodeWithAnnotations<T extends Node>
public List<NodeList<?>> getNodeLists()
Node
getNodeLists
in class Node
@Generated(value="com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
@Generated(value="com.github.javaparser.generator.core.node.CloneGenerator") public BodyDeclaration<?> clone()
@Generated(value="com.github.javaparser.generator.core.node.GetMetaModelGenerator") public BodyDeclarationMetaModel getMetaModel()
getMetaModel
in class Node
Copyright © 2007–2017. All rights reserved.