public abstract class BodyDeclaration<T> extends Node implements NodeWithAnnotations<T>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION| Constructor and Description |
|---|
BodyDeclaration() |
BodyDeclaration(NodeList<AnnotationExpr> annotations) |
BodyDeclaration(Range range,
NodeList<AnnotationExpr> annotations) |
| Modifier and Type | Method and Description |
|---|---|
NodeList<AnnotationExpr> |
getAnnotations() |
T |
setAnnotations(NodeList<AnnotationExpr> annotations) |
accept, accept, addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBackwardsCompatibleChildrenNodes, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentpublic BodyDeclaration()
public BodyDeclaration(NodeList<AnnotationExpr> annotations)
public BodyDeclaration(Range range, NodeList<AnnotationExpr> annotations)
public final NodeList<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<T>public final T setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<T>annotations - a null value is currently treated as an empty list. This behavior could change
in the future, so please avoid passing nullCopyright © 2007–2016. All rights reserved.