Package org.python.core
Enum FutureFeature
- All Implemented Interfaces:
Serializable
,Comparable<FutureFeature>
,java.lang.constant.Constable
,Pragma
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.python.core.Pragma
Pragma.ForbiddenPragmaModule, Pragma.PragmaModule
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnables absolute imports.Use braces for block delimiters instead of indentation.Makes integer / integer division return float.Enables generators.Enable the Global Interpreter Lock in Jython.Enable the Global Interpreter Lock in Jython.Enables nested scopes.Enables the print function.Enables unicode literals.Enables the with statement. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFeature
(String featureName, PragmaReceiver features) void
addTo
(PragmaReceiver features) void
setFlag
(CompilerFlags cflags) static FutureFeature
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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
nested_scopes
Enables nested scopes. -
division
Makes integer / integer division return float. -
generators
Enables generators. -
absolute_import
Enables absolute imports. -
with_statement
Enables the with statement. -
print_function
Enables the print function. -
unicode_literals
Enables unicode literals. -
braces
Use braces for block delimiters instead of indentation. -
GIL
Enable the Global Interpreter Lock in Jython. -
global_interpreter_lock
Enable the Global Interpreter Lock in Jython.
-
-
Field Details
-
MODULE_NAME
- See Also:
-
PRAGMA_MODULE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
addTo
-
addFeature
-
setFlag
-