public abstract class BodyDeclaration<T extends BodyDeclaration<?>> extends Node implements NodeWithAnnotations<T>
Node.ObserverRegistrationMode, Node.Parsedness
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Modifier | Constructor and Description |
---|---|
|
BodyDeclaration() |
|
BodyDeclaration(NodeList<AnnotationExpr> annotations) |
protected |
BodyDeclaration(TokenRange range) |
|
BodyDeclaration(TokenRange tokenRange,
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) |
boolean |
replace(Node node,
Node replacementNode) |
T |
setAnnotations(NodeList<AnnotationExpr> annotations) |
addOrphanComment, customInitialization, equals, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, 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
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public BodyDeclaration()
public BodyDeclaration(NodeList<AnnotationExpr> annotations)
@Generated(value="com.github.javaparser.generator.core.node.MainConstructorGenerator") public BodyDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
protected BodyDeclaration(TokenRange range)
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<AnnotationExpr> getAnnotations()
getAnnotations
in interface NodeWithAnnotations<T extends BodyDeclaration<?>>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public T setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations
in interface NodeWithAnnotations<T extends BodyDeclaration<?>>
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.