public static enum CodeGenerator.Context extends Enum<CodeGenerator.Context>
Enum Constant and Description |
---|
BEFORE_DANGLING_ELSE |
IN_FOR_INIT_CLAUSE |
OTHER |
PRESERVE_BLOCK |
START_OF_EXPR |
STATEMENT |
Modifier and Type | Method and Description |
---|---|
static CodeGenerator.Context |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodeGenerator.Context[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeGenerator.Context STATEMENT
public static final CodeGenerator.Context BEFORE_DANGLING_ELSE
public static final CodeGenerator.Context START_OF_EXPR
public static final CodeGenerator.Context PRESERVE_BLOCK
public static final CodeGenerator.Context IN_FOR_INIT_CLAUSE
public static final CodeGenerator.Context OTHER
public static CodeGenerator.Context[] values()
for (CodeGenerator.Context c : CodeGenerator.Context.values()) System.out.println(c);
public static CodeGenerator.Context 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 nullCopyright © 2009-2016 Google. All Rights Reserved.