NodeWithAnnotations<T>, NodeWithRange<T>, NodeWithTokenRange<T>, Observable, Visitable, HasParentNode<T>, CloneableAnnotationMemberDeclaration, CallableDeclaration, EnumConstantDeclaration, FieldDeclaration, InitializerDeclaration, TypeDeclarationpublic abstract class BodyDeclaration<T extends BodyDeclaration<?>> extends Node implements NodeWithAnnotations<T>
Node.ObserverRegistrationMode, Node.ParsednessABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration| Modifier | Constructor | 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 | 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) |
getAncestorOfTypeaddOrphanComment, 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, unregisteraddAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnitcontainsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBeforepublic BodyDeclaration()
public BodyDeclaration(NodeList<AnnotationExpr> annotations)
@Generated("com.github.javaparser.generator.core.node.MainConstructorGenerator") public BodyDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
protected BodyDeclaration(TokenRange range)
@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<T extends BodyDeclaration<?>>@Generated("com.github.javaparser.generator.core.node.PropertyGenerator") public T setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<T extends BodyDeclaration<?>>public List<NodeList<?>> getNodeLists()
NodegetNodeLists in class Node@Generated("com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
@Generated("com.github.javaparser.generator.core.node.CloneGenerator") public BodyDeclaration<?> clone()
@Generated("com.github.javaparser.generator.core.node.GetMetaModelGenerator") public BodyDeclarationMetaModel getMetaModel()
getMetaModel in class Node@Generated("com.github.javaparser.generator.core.node.ReplaceMethodGenerator") public boolean replace(Node node, Node replacementNode)
Copyright © 2007–2019. All rights reserved.