public final class AnnotationMemberDeclaration extends BodyDeclaration implements DocumentableNode, NamedNode, TypedNode, NodeWithModifiers
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
AnnotationMemberDeclaration() |
AnnotationMemberDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
String name,
Expression defaultValue)
Deprecated.
prefer using Range objects.
|
AnnotationMemberDeclaration(int modifiers,
List<AnnotationExpr> annotations,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(int modifiers,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(Range range,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
String name,
Expression defaultValue) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
Expression |
getDefaultValue() |
JavadocComment |
getJavaDoc()
Gets the JavaDoc for this node.
|
int |
getModifiers()
Return the modifiers of this member declaration.
|
String |
getName() |
Type |
getType() |
void |
setDefaultValue(Expression defaultValue) |
void |
setModifiers(int modifiers) |
void |
setName(String name) |
void |
setType(Type type) |
getAnnotations, setAnnotations
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEnd, getEndColumn, getEndLine, getOrphanComments, getParentNode, getRange, hasComment, hashCode, isPositionedAfter, isPositionedAfter, isPositionedBefore, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBeginColumn, setBeginLine, setComment, setData, setEnd, setEndColumn, setEndLine, setParentNode, setRange, toString, toStringWithoutComments
public AnnotationMemberDeclaration()
public AnnotationMemberDeclaration(int modifiers, Type type, String name, Expression defaultValue)
public AnnotationMemberDeclaration(int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue)
@Deprecated public AnnotationMemberDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue)
public AnnotationMemberDeclaration(Range range, int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public Expression getDefaultValue()
public int getModifiers()
getModifiers
in interface NodeWithModifiers
ModifierSet
public void setDefaultValue(Expression defaultValue)
public void setModifiers(int modifiers)
public void setName(String name)
public JavadocComment getJavaDoc()
DocumentableNode
getJavaDoc
in interface DocumentableNode
Copyright © 2007–2016. All rights reserved.