ua.gradsoft.javachecker.models
Enum JavaStatementKind
java.lang.Object
java.lang.Enum<JavaStatementKind>
ua.gradsoft.javachecker.models.JavaStatementKind
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JavaStatementKind>
public enum JavaStatementKind
- extends java.lang.Enum<JavaStatementKind>
Kind of Java Statements
- Author:
- Ruslan Shevchenko
|
Method Summary |
static JavaStatementKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JavaStatementKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LABELED_STATEMENT
public static final JavaStatementKind LABELED_STATEMENT
ASSERT_STATEMENT
public static final JavaStatementKind ASSERT_STATEMENT
BLOCK
public static final JavaStatementKind BLOCK
EMPTY_STATEMENT
public static final JavaStatementKind EMPTY_STATEMENT
STATEMENT_EXPRESSION_STATEMENT
public static final JavaStatementKind STATEMENT_EXPRESSION_STATEMENT
SWITCH_STATEMENT
public static final JavaStatementKind SWITCH_STATEMENT
SWITCH_LABEL_BLOCK
public static final JavaStatementKind SWITCH_LABEL_BLOCK
IF_STATEMENT
public static final JavaStatementKind IF_STATEMENT
WHILE_STATEMENT
public static final JavaStatementKind WHILE_STATEMENT
DO_STATEMENT
public static final JavaStatementKind DO_STATEMENT
FOR_STATEMENT
public static final JavaStatementKind FOR_STATEMENT
BREAK_STATEMENT
public static final JavaStatementKind BREAK_STATEMENT
CONTINUE_STATEMENT
public static final JavaStatementKind CONTINUE_STATEMENT
RETURN_STATEMENT
public static final JavaStatementKind RETURN_STATEMENT
THROW_STATEMENT
public static final JavaStatementKind THROW_STATEMENT
SYNCHRONIZED_STATEMENT
public static final JavaStatementKind SYNCHRONIZED_STATEMENT
TRY_STATEMENT
public static final JavaStatementKind TRY_STATEMENT
CATCH_SEQUENCE
public static final JavaStatementKind CATCH_SEQUENCE
CATCH
public static final JavaStatementKind CATCH
LOCAL_VARIABLE_DECLARATION
public static final JavaStatementKind LOCAL_VARIABLE_DECLARATION
CLASS_OR_INTERFACE_DECLARATION
public static final JavaStatementKind CLASS_OR_INTERFACE_DECLARATION
EXPLICIT_SUPER_CONSTRUCTOR_INVOCATION
public static final JavaStatementKind EXPLICIT_SUPER_CONSTRUCTOR_INVOCATION
EXPLICIT_THIS_CONSTRUCTOR_INVOCATION
public static final JavaStatementKind EXPLICIT_THIS_CONSTRUCTOR_INVOCATION
values
public static JavaStatementKind[] 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 (JavaStatementKind c : JavaStatementKind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JavaStatementKind valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null