java.io.Serializable
, java.lang.Comparable<FutureFeature>
, Pragma
public enum FutureFeature extends java.lang.Enum<FutureFeature> implements Pragma
Pragma.ForbiddenPragmaModule, Pragma.PragmaModule
Enum Constant | Description |
---|---|
absolute_import |
Enables absolute imports.
|
braces |
Use braces for block delimiters instead of indentation.
|
division |
Makes integer / integer division return float.
|
generators |
Enables generators.
|
GIL |
Enable the Global Interpreter Lock in Jython.
|
global_interpreter_lock |
Enable the Global Interpreter Lock in Jython.
|
nested_scopes |
Enables nested scopes.
|
print_function |
Enables the print function.
|
unicode_literals |
Enables unicode literals.
|
with_statement |
Enables the with statement.
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
MODULE_NAME |
|
static Pragma.PragmaModule |
PRAGMA_MODULE |
Modifier and Type | Method | Description |
---|---|---|
static void |
addFeature(java.lang.String featureName,
PragmaReceiver features) |
|
void |
addTo(PragmaReceiver features) |
|
void |
setFlag(CompilerFlags cflags) |
|
static FutureFeature |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static FutureFeature[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FutureFeature nested_scopes
public static final FutureFeature division
public static final FutureFeature generators
public static final FutureFeature absolute_import
public static final FutureFeature with_statement
public static final FutureFeature print_function
public static final FutureFeature unicode_literals
public static final FutureFeature braces
public static final FutureFeature GIL
public static final FutureFeature global_interpreter_lock
public static final java.lang.String MODULE_NAME
public static final Pragma.PragmaModule PRAGMA_MODULE
public static FutureFeature[] values()
for (FutureFeature c : FutureFeature.values()) System.out.println(c);
public static FutureFeature 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 void addTo(PragmaReceiver features)
public static void addFeature(java.lang.String featureName, PragmaReceiver features)
public void setFlag(CompilerFlags cflags)