Package com.google.googlejavaformat.java
Enum SnippetFormatter.SnippetKind
- java.lang.Object
-
- java.lang.Enum<SnippetFormatter.SnippetKind>
-
- com.google.googlejavaformat.java.SnippetFormatter.SnippetKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SnippetFormatter.SnippetKind>
- Enclosing class:
- SnippetFormatter
public static enum SnippetFormatter.SnippetKind extends java.lang.Enum<SnippetFormatter.SnippetKind>
The kind of snippet to format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS_BODY_DECLARATIONSCOMPILATION_UNITEXPRESSIONSTATEMENTS
-
Constructor Summary
Constructors Modifier Constructor Description privateSnippetKind()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SnippetFormatter.SnippetKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SnippetFormatter.SnippetKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPILATION_UNIT
public static final SnippetFormatter.SnippetKind COMPILATION_UNIT
-
CLASS_BODY_DECLARATIONS
public static final SnippetFormatter.SnippetKind CLASS_BODY_DECLARATIONS
-
STATEMENTS
public static final SnippetFormatter.SnippetKind STATEMENTS
-
EXPRESSION
public static final SnippetFormatter.SnippetKind EXPRESSION
-
-
Method Detail
-
values
public static SnippetFormatter.SnippetKind[] 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 (SnippetFormatter.SnippetKind c : SnippetFormatter.SnippetKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SnippetFormatter.SnippetKind 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 namejava.lang.NullPointerException- if the argument is null
-
-