public final class AnnotationMemberDeclaration extends BodyDeclaration<AnnotationMemberDeclaration> implements NodeWithJavaDoc<AnnotationMemberDeclaration>, NodeWithName<AnnotationMemberDeclaration>, NodeWithType<AnnotationMemberDeclaration,Type<?>>, NodeWithModifiers<AnnotationMemberDeclaration>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
AnnotationMemberDeclaration() |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type<?> type,
String name,
Optional<Expression> defaultValue) |
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
Type<?> type,
String name,
Optional<Expression> defaultValue) |
AnnotationMemberDeclaration(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
String name,
Optional<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.
|
Optional<Expression> |
getDefaultValue() |
Optional<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
|
AnnotationMemberDeclaration |
setDefaultValue(Optional<Expression> defaultValue) |
AnnotationMemberDeclaration |
setModifiers(EnumSet<Modifier> modifiers) |
AnnotationMemberDeclaration |
setName(String name) |
AnnotationMemberDeclaration |
setType(Type<?> type)
Sets the type
|
getAnnotations, setAnnotations
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBackwardsCompatibleChildrenNodes, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
setJavaDocComment
setType, 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, Optional<Expression> defaultValue)
public AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type<?> type, String name, Optional<Expression> defaultValue)
public AnnotationMemberDeclaration(Range range, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, String name, Optional<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 Optional<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,Type<?>>
public AnnotationMemberDeclaration setDefaultValue(Optional<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<?>>
type
- the typepublic Optional<JavadocComment> getJavaDoc()
NodeWithJavaDoc
getJavaDoc
in interface NodeWithJavaDoc<AnnotationMemberDeclaration>
Copyright © 2007–2016. All rights reserved.