enum X { A(1), B(2) }
| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private NodeList | |
| private SimpleName |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | EnumConstantDeclaration(NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody)
|
| public | EnumConstantDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody)
This constructor is used by the parser and is considered private. |
| arguments | back to summary |
|---|---|
| private NodeList<Expression> arguments | |
| classBody | back to summary |
|---|---|
| private NodeList<BodyDeclaration<?>> classBody | |
| name | back to summary |
|---|---|
| private SimpleName name | |
| EnumConstantDeclaration | back to summary |
|---|---|
| public EnumConstantDeclaration() | |
| EnumConstantDeclaration | back to summary |
|---|---|
| public EnumConstantDeclaration(String name) | |
| EnumConstantDeclaration | back to summary |
|---|---|
public EnumConstantDeclaration(NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody)
| |
| EnumConstantDeclaration | back to summary |
|---|---|
| public EnumConstantDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody) 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.
| |
| asEnumConstantDeclaration | back to summary |
|---|---|
| public EnumConstantDeclaration asEnumConstantDeclaration() Overrides com.
| |
| clone | back to summary |
|---|---|
| public EnumConstantDeclaration 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
| |
| getArguments | back to summary |
|---|---|
| public NodeList Implements com.
| |
| getClassBody | back to summary |
|---|---|
public NodeList
| |
| getMetaModel | back to summary |
|---|---|
| public EnumConstantDeclarationMetaModel getMetaModel() Overrides com.
| |
| getName | back to summary |
|---|---|
| public SimpleName getName() Implements com.
| |
| ifEnumConstantDeclaration | back to summary |
|---|---|
| public void ifEnumConstantDeclaration(Consumer<EnumConstantDeclaration> action) Overrides com.
| |
| isEnumConstantDeclaration | back to summary |
|---|---|
| public boolean isEnumConstantDeclaration() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedEnumConstantDeclaration resolve() Implements com.
| |
| setArguments | back to summary |
|---|---|
| public EnumConstantDeclaration setArguments(final NodeList<Expression> arguments) Implements com.
| |
| setClassBody | back to summary |
|---|---|
public EnumConstantDeclaration setClassBody(final NodeList<BodyDeclaration<?>> classBody)
| |
| setName | back to summary |
|---|---|
| public EnumConstantDeclaration setName(final SimpleName name) Implements com.
| |
| toEnumConstantDeclaration | back to summary |
|---|---|
| public Optional Overrides com.
| |