public abstract class BodyDeclaration extends Node implements AnnotableNode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
BodyDeclaration() |
BodyDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<AnnotationExpr> annotations) |
BodyDeclaration(List<AnnotationExpr> annotations) |
Modifier and Type | Method and Description |
---|---|
List<AnnotationExpr> |
getAnnotations() |
void |
setAnnotations(List<AnnotationExpr> annotations) |
accept, accept, addOrphanComment, clone, contains, equals, getAllContainedComments, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEndColumn, getEndLine, getOrphanComments, getParentNode, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setComment, setData, setEndColumn, setEndLine, setParentNode, toString, toStringWithoutComments
public BodyDeclaration()
public BodyDeclaration(List<AnnotationExpr> annotations)
public BodyDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, List<AnnotationExpr> annotations)
public final List<AnnotationExpr> getAnnotations()
getAnnotations
in interface AnnotableNode
public final void setAnnotations(List<AnnotationExpr> annotations)
annotations
- a null value is currently treated as an empty list. This behavior could change
in the future, so please avoid passing nullCopyright © 2007-2015. All Rights Reserved.