Enum ASTAnyTypeBodyDeclaration.DeclarationKind
- java.lang.Object
-
- java.lang.Enum<ASTAnyTypeBodyDeclaration.DeclarationKind>
-
- net.sourceforge.pmd.lang.java.ast.ASTAnyTypeBodyDeclaration.DeclarationKind
-
- All Implemented Interfaces:
Serializable
,Comparable<ASTAnyTypeBodyDeclaration.DeclarationKind>
- Enclosing interface:
- ASTAnyTypeBodyDeclaration
public static enum ASTAnyTypeBodyDeclaration.DeclarationKind extends Enum<ASTAnyTypeBodyDeclaration.DeclarationKind>
Kind of declaration. This is not deprecated because the node will go away entirely in 7.0.0 and one cannot avoid using it on master. SeeASTAnyTypeDeclaration.TypeKind
for the reasons for deprecation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION
ANNOTATION_METHOD
CLASS
CONSTRUCTOR
EMPTY
No child,ASTAnyTypeBodyDeclaration.getDeclarationNode()
will return null.ENUM
SeeASTEnumDeclaration
.FIELD
SeeASTFieldDeclaration
.INITIALIZER
SeeASTInitializer
.INTERFACE
METHOD
SeeASTMethodDeclaration
.RECORD
SeeASTRecordDeclaration
.RECORD_CONSTRUCTOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ASTAnyTypeBodyDeclaration.DeclarationKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ASTAnyTypeBodyDeclaration.DeclarationKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZER
public static final ASTAnyTypeBodyDeclaration.DeclarationKind INITIALIZER
SeeASTInitializer
.
-
CONSTRUCTOR
public static final ASTAnyTypeBodyDeclaration.DeclarationKind CONSTRUCTOR
-
METHOD
public static final ASTAnyTypeBodyDeclaration.DeclarationKind METHOD
SeeASTMethodDeclaration
.
-
FIELD
public static final ASTAnyTypeBodyDeclaration.DeclarationKind FIELD
SeeASTFieldDeclaration
.
-
ANNOTATION_METHOD
public static final ASTAnyTypeBodyDeclaration.DeclarationKind ANNOTATION_METHOD
-
CLASS
public static final ASTAnyTypeBodyDeclaration.DeclarationKind CLASS
-
ENUM
public static final ASTAnyTypeBodyDeclaration.DeclarationKind ENUM
SeeASTEnumDeclaration
.
-
INTERFACE
public static final ASTAnyTypeBodyDeclaration.DeclarationKind INTERFACE
-
ANNOTATION
public static final ASTAnyTypeBodyDeclaration.DeclarationKind ANNOTATION
-
EMPTY
public static final ASTAnyTypeBodyDeclaration.DeclarationKind EMPTY
No child,ASTAnyTypeBodyDeclaration.getDeclarationNode()
will return null.
-
RECORD
public static final ASTAnyTypeBodyDeclaration.DeclarationKind RECORD
SeeASTRecordDeclaration
.
-
RECORD_CONSTRUCTOR
public static final ASTAnyTypeBodyDeclaration.DeclarationKind RECORD_CONSTRUCTOR
-
-
Method Detail
-
values
public static ASTAnyTypeBodyDeclaration.DeclarationKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ASTAnyTypeBodyDeclaration.DeclarationKind c : ASTAnyTypeBodyDeclaration.DeclarationKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ASTAnyTypeBodyDeclaration.DeclarationKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-