Top Description Fields Constructors Methods
org.python.core

public final Enum CodeFlag

extends Enum<CodeFlag>
Class Inheritance
Imports
java.util.Arrays, .Collections, .Iterator

Represents flags that can be set on code objects.
Author
Tobias Ivarsson

Field Summary

Modifier and TypeField and Description
private static Iterable<CodeFlag>
public static final CodeFlag
CO_FUTURE_ABSOLUTE_IMPORT

Absolute import.

public static final CodeFlag
CO_FUTURE_DIVISION

Standard division of integers returns float, truncating division needs to be enforced.

public static final CodeFlag
CO_FUTURE_PRINT_FUNCTION

print function.

public static final CodeFlag
CO_FUTURE_UNICODE_LITERALS

unicode literals.

public static final CodeFlag
CO_FUTURE_WITH_STATEMENT

With statement.

public static final CodeFlag
CO_GENERATOR

The compiled code block is a generator code block.

public static final CodeFlag
CO_GENERATOR_ALLOWED

Denotes that generators are enabled in the code block.

public static final CodeFlag
CO_NESTED

Denotes that nested scopes are enabled in the code block.

public static final CodeFlag
CO_NEWLOCALS

Denotes that a new dictionary should be created for the code block.

public static final CodeFlag
CO_OPTIMIZED

Denotes that the code block uses fast locals.

public static final CodeFlag
CO_VARARGS

The compiled code block has a varargs argument.

public static final CodeFlag
CO_VARKEYWORDS

The compiled code block has a varkeyword argument.

public final int

Constructor Summary

AccessConstructor and Description
private
CodeFlag(int flag)

Method Summary

Modifier and TypeMethod and Description
public boolean
isFlagBitSetIn(int flags)

pack-priv static Iterable<CodeFlag>
parse(final int flags)

public static CodeFlag
public static CodeFlag[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

allFlagsback to summary
private static Iterable<CodeFlag> allFlags
CO_FUTURE_ABSOLUTE_IMPORTback to summary
public static final CodeFlag CO_FUTURE_ABSOLUTE_IMPORT

Absolute import.

CO_FUTURE_DIVISIONback to summary
public static final CodeFlag CO_FUTURE_DIVISION

Standard division of integers returns float, truncating division needs to be enforced.

CO_FUTURE_PRINT_FUNCTIONback to summary
public static final CodeFlag CO_FUTURE_PRINT_FUNCTION

print function.

CO_FUTURE_UNICODE_LITERALSback to summary
public static final CodeFlag CO_FUTURE_UNICODE_LITERALS

unicode literals.

CO_FUTURE_WITH_STATEMENTback to summary
public static final CodeFlag CO_FUTURE_WITH_STATEMENT

With statement.

CO_GENERATORback to summary
public static final CodeFlag CO_GENERATOR

The compiled code block is a generator code block.

CO_GENERATOR_ALLOWEDback to summary
public static final CodeFlag CO_GENERATOR_ALLOWED

Denotes that generators are enabled in the code block.

CO_NESTEDback to summary
public static final CodeFlag CO_NESTED

Denotes that nested scopes are enabled in the code block.

CO_NEWLOCALSback to summary
public static final CodeFlag CO_NEWLOCALS

Denotes that a new dictionary should be created for the code block.

CO_OPTIMIZEDback to summary
public static final CodeFlag CO_OPTIMIZED

Denotes that the code block uses fast locals.

CO_VARARGSback to summary
public static final CodeFlag CO_VARARGS

The compiled code block has a varargs argument.

CO_VARKEYWORDSback to summary
public static final CodeFlag CO_VARKEYWORDS

The compiled code block has a varkeyword argument.

flagback to summary
public final int flag

Constructor Detail

CodeFlagback to summary
private CodeFlag(int flag)

Method Detail

isFlagBitSetInback to summary
public boolean isFlagBitSetIn(int flags)
parseback to summary
pack-priv static Iterable<CodeFlag> parse(final int flags)
valueOfback to summary
public static CodeFlag valueOf(String name)
valuesback to summary
public static CodeFlag[] values()