enum X { ... }
| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | EnumDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members)
|
| public | EnumDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private. |
| entries | back to summary |
|---|---|
| private NodeList<EnumConstantDeclaration> entries | |
| implementedTypes | back to summary |
|---|---|
| private NodeList<ClassOrInterfaceType> implementedTypes | |
| EnumDeclaration | back to summary |
|---|---|
| public EnumDeclaration() | |
| EnumDeclaration | back to summary |
|---|---|
| public EnumDeclaration(NodeList<Modifier> modifiers, String name) | |
| EnumDeclaration | back to summary |
|---|---|
public EnumDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members)
| |
| EnumDeclaration | back to summary |
|---|---|
| public EnumDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members) 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.
| |
| addEntry | back to summary |
|---|---|
| public EnumDeclaration addEntry(EnumConstantDeclaration element) | |
| addEnumConstant | back to summary |
|---|---|
| public EnumConstantDeclaration addEnumConstant(String name) | |
| asEnumDeclaration | back to summary |
|---|---|
| public EnumDeclaration asEnumDeclaration() Overrides com.
| |
| clone | back to summary |
|---|---|
| public EnumDeclaration 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
| |
| getEntries | back to summary |
|---|---|
public NodeList
| |
| getEntry | back to summary |
|---|---|
| public EnumConstantDeclaration getEntry(int i) | |
| getImplementedTypes | back to summary |
|---|---|
| public NodeList Implements com.
| |
| getMetaModel | back to summary |
|---|---|
| public EnumDeclarationMetaModel getMetaModel() Overrides com.
| |
| ifEnumDeclaration | back to summary |
|---|---|
| public void ifEnumDeclaration(Consumer<EnumDeclaration> action) Overrides com.
| |
| isEnumDeclaration | back to summary |
|---|---|
| public boolean isEnumDeclaration() 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 ResolvedEnumDeclaration resolve() Implements abstract com. Implements com.
| |
| setEntries | back to summary |
|---|---|
public EnumDeclaration setEntries(final NodeList<EnumConstantDeclaration> entries)
| |
| setEntry | back to summary |
|---|---|
| public EnumDeclaration setEntry(int i, EnumConstantDeclaration element) | |
| setImplementedTypes | back to summary |
|---|---|
| public EnumDeclaration setImplementedTypes(final NodeList<ClassOrInterfaceType> implementedTypes) Implements com.
| |
| toEnumDeclaration | back to summary |
|---|---|
| public Optional Overrides com.
| |