public abstract class BodyDeclaration<T> extends Node implements NodeWithAnnotations<T>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
BodyDeclaration() |
BodyDeclaration(List<AnnotationExpr> annotations) |
BodyDeclaration(Range range,
List<AnnotationExpr> annotations) |
Modifier and Type | Method and Description |
---|---|
List<AnnotationExpr> |
getAnnotations() |
T |
setAnnotations(List<AnnotationExpr> annotations) |
accept, accept, addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent
public BodyDeclaration()
public BodyDeclaration(List<AnnotationExpr> annotations)
public BodyDeclaration(Range range, List<AnnotationExpr> annotations)
public final List<AnnotationExpr> getAnnotations()
getAnnotations
in interface NodeWithAnnotations<T>
public final T setAnnotations(List<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.