public final class AnnotationMemberDeclaration extends BodyDeclaration
Constructor and Description |
---|
AnnotationMemberDeclaration() |
AnnotationMemberDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(int modifiers,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(JavadocComment javaDoc,
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() |
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, getJavaDoc, setAnnotations, setJavaDoc
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString
public AnnotationMemberDeclaration()
public AnnotationMemberDeclaration(int modifiers, Type type, String name, Expression defaultValue)
public AnnotationMemberDeclaration(JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue)
public AnnotationMemberDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, JavadocComment javaDoc, 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()
ModifierSet
public String getName()
public Type getType()
public void setDefaultValue(Expression defaultValue)
public void setModifiers(int modifiers)
public void setName(String name)
public void setType(Type type)