@interface X { int id(); }
All annotations preceding the type will be set on this object, not on the type. JavaParser doesn't know if it
they are applicable to the method or the type.
| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private NodeList | |
| private SimpleName | |
| private Type |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AnnotationMemberDeclaration(NodeList<Modifier> modifiers, Type type, String name, Expression defaultValue)
|
| public | AnnotationMemberDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)
|
| public | AnnotationMemberDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)
This constructor is used by the parser and is considered private. |
| defaultValue | back to summary |
|---|---|
| private Expression defaultValue
| |
| modifiers | back to summary |
|---|---|
| private NodeList<Modifier> modifiers | |
| name | back to summary |
|---|---|
| private SimpleName name | |
| type | back to summary |
|---|---|
| private Type type | |
| AnnotationMemberDeclaration | back to summary |
|---|---|
| public AnnotationMemberDeclaration() | |
| AnnotationMemberDeclaration | back to summary |
|---|---|
| public AnnotationMemberDeclaration(NodeList<Modifier> modifiers, Type type, String name, Expression defaultValue) | |
| AnnotationMemberDeclaration | back to summary |
|---|---|
public AnnotationMemberDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue)
| |
| AnnotationMemberDeclaration | back to summary |
|---|---|
| public AnnotationMemberDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asAnnotationMemberDeclaration | back to summary |
|---|---|
| public AnnotationMemberDeclaration asAnnotationMemberDeclaration() Overrides com.
| |
| clone | back to summary |
|---|---|
| public AnnotationMemberDeclaration clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getDefaultValue | back to summary |
|---|---|
public Optional
| |
| getMetaModel | back to summary |
|---|---|
| public AnnotationMemberDeclarationMetaModel getMetaModel() Overrides com.
| |
| getModifiers | back to summary |
|---|---|
| public NodeList Implements com. Return the modifiers of this member declaration.
| |
| getName | back to summary |
|---|---|
| public SimpleName getName() Implements com.
| |
| getType | back to summary |
|---|---|
| public Type getType() Implements com. Doc from com. Gets the type
| |
| ifAnnotationMemberDeclaration | back to summary |
|---|---|
| public void ifAnnotationMemberDeclaration(Consumer<AnnotationMemberDeclaration> action) Overrides com.
| |
| isAnnotationMemberDeclaration | back to summary |
|---|---|
| public boolean isAnnotationMemberDeclaration() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| removeDefaultValue | back to summary |
|---|---|
public AnnotationMemberDeclaration removeDefaultValue()
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedAnnotationMemberDeclaration resolve() Implements com.
| |
| setDefaultValue | back to summary |
|---|---|
| public AnnotationMemberDeclaration setDefaultValue(final Expression defaultValue) Sets the default value
| |
| setModifiers | back to summary |
|---|---|
| public AnnotationMemberDeclaration setModifiers(final NodeList<Modifier> modifiers) Implements com.
| |
| setName | back to summary |
|---|---|
| public AnnotationMemberDeclaration setName(final SimpleName name) Implements com.
| |
| setType | back to summary |
|---|---|
| public AnnotationMemberDeclaration setType(final Type type) Implements com. Doc from com. Sets the type
| |
| toAnnotationMemberDeclaration | back to summary |
|---|---|
| public Optional Overrides com.
| |