public static final class Java.EnumConstant extends Java.AbstractClassDeclaration implements Java.DocCommentable
| Modifier and Type | Field and Description |
|---|---|
Java.Rvalue[] |
arguments
The optional arguments that appear after the enum constant name iff the enum declares constructors with
one or more parameters.
|
String |
docComment
The optional "doc comment" that appeared in the compilation unit immediately before this enum constant
declaration.
|
String |
name
The name of the declared enum constant.
|
constructors, fieldDeclarationsAndInitializersanonymousClassCount, localClassCount| Constructor and Description |
|---|
EnumConstant(Location location,
String docComment,
Java.Modifier[] modifiers,
String name,
Java.Rvalue[] arguments) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.TypeDeclarationVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type. |
String |
getClassName()
Determines the effective class name, e.g.
|
String |
getDocComment() |
boolean |
hasDeprecatedDocTag()
Returns
true if the object has a doc comment and the @deprecated tag appears in the doc
comment. |
String |
toString() |
addConstructor, addFieldDeclaration, addFieldDeclarationOrInitializer, addInitializer, defineSyntheticField, getSyntheticFields, getVariableDeclaratorsAndInitializersaddDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiers, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateAnonymousClassName, createLocalTypeName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarationsgetAnnotationsgetLocation, throwCompileExceptiongetEnclosingScope@Nullable public final String docComment
public final String name
@Nullable public final Java.Rvalue[] arguments
public EnumConstant(Location location, @Nullable String docComment, Java.Modifier[] modifiers, String name, @Nullable Java.Rvalue[] arguments)
public String getClassName()
Java.TypeDeclarationgetClassName in interface Java.TypeDeclaration@Nullable public String getDocComment()
getDocComment in interface Java.DocCommentablenullpublic boolean hasDeprecatedDocTag()
Java.DocCommentabletrue if the object has a doc comment and the @deprecated tag appears in the doc
comment.hasDeprecatedDocTag in interface Java.DocCommentable@Nullable public <R,EX extends Throwable> R accept(Visitor.TypeDeclarationVisitor<R,EX> visitor) throws EX extends Throwable
Java.TypeDeclarationvisit...()" method of Visitor.TypeDeclarationVisitor for the concrete Java.TypeDeclaration type.accept in interface Java.TypeDeclarationEX extends Throwablepublic String toString()
toString in class Java.AbstractTypeDeclarationCopyright © 2022. All rights reserved.