public final class AnnotationMemberDeclaration extends BodyDeclaration<AnnotationMemberDeclaration> implements NodeWithJavaDoc<AnnotationMemberDeclaration>, NodeWithName<AnnotationMemberDeclaration>, NodeWithType<AnnotationMemberDeclaration>, NodeWithModifiers<AnnotationMemberDeclaration>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
AnnotationMemberDeclaration() |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
List<AnnotationExpr> annotations,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
Type type,
String name,
Expression defaultValue) |
AnnotationMemberDeclaration(Range range,
EnumSet<Modifier> 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.
|
EnumSet<Modifier> |
getModifiers()
Return the modifiers of this member declaration.
|
String |
getName() |
Type |
getType()
Gets the type
|
void |
setDefaultValue(Expression defaultValue) |
AnnotationMemberDeclaration |
setModifiers(EnumSet<Modifier> modifiers) |
AnnotationMemberDeclaration |
setName(String name) |
AnnotationMemberDeclaration |
setType(Type type)
Sets the type
|
getAnnotations, setAnnotations
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
setJavaDocComment
setType
addModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent
public AnnotationMemberDeclaration()
public AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, Type type, String name, Expression defaultValue)
public AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue)
public AnnotationMemberDeclaration(Range range, EnumSet<Modifier> 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 EnumSet<Modifier> getModifiers()
getModifiers
in interface NodeWithModifiers<AnnotationMemberDeclaration>
Modifier
public String getName()
getName
in interface NodeWithName<AnnotationMemberDeclaration>
public Type getType()
NodeWithType
getType
in interface NodeWithType<AnnotationMemberDeclaration>
public void setDefaultValue(Expression defaultValue)
public AnnotationMemberDeclaration setModifiers(EnumSet<Modifier> modifiers)
setModifiers
in interface NodeWithModifiers<AnnotationMemberDeclaration>
public AnnotationMemberDeclaration setName(String name)
setName
in interface NodeWithName<AnnotationMemberDeclaration>
public AnnotationMemberDeclaration setType(Type type)
NodeWithType
setType
in interface NodeWithType<AnnotationMemberDeclaration>
type
- the typepublic JavadocComment getJavaDoc()
NodeWithJavaDoc
getJavaDoc
in interface NodeWithJavaDoc<AnnotationMemberDeclaration>
Copyright © 2007–2016. All rights reserved.