public enum CreateClassKind extends java.lang.Enum<CreateClassKind> implements ClassKind
Enum Constant and Description |
---|
ANNOTATION |
CLASS |
ENUM |
INTERFACE |
RECORD |
Modifier and Type | Method and Description |
---|---|
PsiClass |
create(PsiElementFactory factory,
java.lang.String name)
Creates a non-physical class
|
PsiClass |
createInDirectory(PsiDirectory directory,
java.lang.String name)
Creates a new physical class in directory
|
java.lang.String |
getDescription() |
java.lang.String |
getDescriptionAccusative() |
javax.swing.Icon |
getKindIcon() |
static CreateClassKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreateClassKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateClassKind CLASS
public static final CreateClassKind INTERFACE
public static final CreateClassKind ENUM
public static final CreateClassKind ANNOTATION
public static final CreateClassKind RECORD
public static CreateClassKind[] values()
for (CreateClassKind c : CreateClassKind.values()) System.out.println(c);
public static CreateClassKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
getDescription
in interface ClassKind
public java.lang.String getDescriptionAccusative()
getDescriptionAccusative
in interface ClassKind
public javax.swing.Icon getKindIcon()
public PsiClass create(PsiElementFactory factory, java.lang.String name)
factory
- factory to usename
- name of the new classpublic PsiClass createInDirectory(PsiDirectory directory, java.lang.String name)
directory
- directory to create the class atname
- name of the new class