public enum ClassType extends Enum<ClassType>
| Enum Constant and Description |
|---|
ABSTRACT_CLASS
abstract class.
|
ANNOTATION
annotation.
|
CLASS
class.
|
ENUM
enum.
|
INTERFACE
interface.
|
| Modifier and Type | Method and Description |
|---|---|
static ClassType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassType INTERFACE
public static final ClassType CLASS
public static final ClassType ABSTRACT_CLASS
public static final ClassType ENUM
public static final ClassType ANNOTATION
public static ClassType[] values()
for (ClassType c : ClassType.values()) System.out.println(c);
public static ClassType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.