public static enum CodeSnippet.Kind extends java.lang.Enum<CodeSnippet.Kind>
Enum Constant and Description |
---|
ERRONEOUS |
EXPRESSION |
IMPORT |
METHOD |
STATEMENT |
TYPE_DECL |
UNKNOWN |
VAR |
Modifier and Type | Method and Description |
---|---|
boolean |
isPersistent() |
static CodeSnippet.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodeSnippet.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeSnippet.Kind IMPORT
public static final CodeSnippet.Kind TYPE_DECL
public static final CodeSnippet.Kind METHOD
public static final CodeSnippet.Kind VAR
public static final CodeSnippet.Kind EXPRESSION
public static final CodeSnippet.Kind STATEMENT
public static final CodeSnippet.Kind ERRONEOUS
public static final CodeSnippet.Kind UNKNOWN
public static CodeSnippet.Kind[] values()
for (CodeSnippet.Kind c : CodeSnippet.Kind.values()) System.out.println(c);
public static CodeSnippet.Kind 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 boolean isPersistent()