Serializable, Comparable<Snippet.SubKind>public static enum Snippet.SubKind extends Enum<Snippet.SubKind>
kind.| Enum Constant | Description |
|---|---|
ANNOTATION_TYPE_SUBKIND |
An annotation interface declaration.
|
ASSIGNMENT_SUBKIND |
An assignment expression.
|
CLASS_SUBKIND |
A class declaration.
|
ENUM_SUBKIND |
An enum declaration.
|
INTERFACE_SUBKIND |
An interface declaration.
|
METHOD_SUBKIND |
A method.
|
OTHER_EXPRESSION_SUBKIND |
An expression which has not been wrapped in a temporary variable
(reserved).
|
SINGLE_STATIC_IMPORT_SUBKIND |
Single-Static-Import Declaration.
|
SINGLE_TYPE_IMPORT_SUBKIND |
Single-Type-Import Declaration.
|
STATEMENT_SUBKIND |
A statement.
|
STATIC_IMPORT_ON_DEMAND_SUBKIND |
Static-Import-on-Demand Declaration.
|
TEMP_VAR_EXPRESSION_SUBKIND |
An expression whose value has been stored in a temporary variable.
|
TYPE_IMPORT_ON_DEMAND_SUBKIND |
Type-Import-on-Demand Declaration.
|
UNKNOWN_SUBKIND |
An unknown snippet.
|
VAR_DECLARATION_SUBKIND |
A variable declaration without initializer.
|
VAR_DECLARATION_WITH_INITIALIZER_SUBKIND |
A variable declaration with an initializer expression.
|
VAR_VALUE_SUBKIND |
A simple variable reference expression.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasValue() |
Indicates whether this
SubKind is executable and
is non-void. |
boolean |
isExecutable() |
Indicates whether this
SubKind is executable. |
Snippet.Kind |
kind() |
The
Snippet.Kind that corresponds to this SubKind. |
static Snippet.SubKind |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Snippet.SubKind[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Snippet.SubKind SINGLE_TYPE_IMPORT_SUBKIND
public static final Snippet.SubKind TYPE_IMPORT_ON_DEMAND_SUBKIND
public static final Snippet.SubKind SINGLE_STATIC_IMPORT_SUBKIND
public static final Snippet.SubKind STATIC_IMPORT_ON_DEMAND_SUBKIND
public static final Snippet.SubKind CLASS_SUBKIND
SubKind of Snippet.Kind.TYPE_DECL.public static final Snippet.SubKind INTERFACE_SUBKIND
SubKind of Snippet.Kind.TYPE_DECL.public static final Snippet.SubKind ENUM_SUBKIND
SubKind of Snippet.Kind.TYPE_DECL.public static final Snippet.SubKind ANNOTATION_TYPE_SUBKIND
SubKind of
Snippet.Kind.TYPE_DECL.public static final Snippet.SubKind METHOD_SUBKIND
SubKind for Snippet.Kind.METHOD.public static final Snippet.SubKind VAR_DECLARATION_SUBKIND
SubKind of Snippet.Kind.VAR.public static final Snippet.SubKind VAR_DECLARATION_WITH_INITIALIZER_SUBKIND
SubKind of Snippet.Kind.VAR.public static final Snippet.SubKind TEMP_VAR_EXPRESSION_SUBKIND
SubKind of Snippet.Kind.VAR.public static final Snippet.SubKind VAR_VALUE_SUBKIND
SubKind of
Snippet.Kind.EXPRESSION.public static final Snippet.SubKind ASSIGNMENT_SUBKIND
SubKind of
Snippet.Kind.EXPRESSION.public static final Snippet.SubKind OTHER_EXPRESSION_SUBKIND
SubKind of Snippet.Kind.EXPRESSION.public static final Snippet.SubKind STATEMENT_SUBKIND
SubKind for Snippet.Kind.STATEMENT.public static final Snippet.SubKind UNKNOWN_SUBKIND
SubKind for
Snippet.Kind.ERRONEOUS.public static Snippet.SubKind[] values()
for (Snippet.SubKind c : Snippet.SubKind.values()) System.out.println(c);
public static Snippet.SubKind 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 nullpublic boolean isExecutable()
SubKind is executable.true if this SubKind can
be executed; otherwise falsepublic boolean hasValue()
SubKind is executable and
is non-void.true if this SubKind has
a value; otherwise falsepublic Snippet.Kind kind()
Snippet.Kind that corresponds to this SubKind.Kind for this SubKind Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1