Package org.python.core
Class CompilerFlags
- java.lang.Object
-
- org.python.core.CompilerFlags
-
- All Implemented Interfaces:
java.io.Serializable
public class CompilerFlags extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description booleandont_imply_dedentjava.lang.Stringencodingbooleanonly_aststatic intPyCF_DONT_IMPLY_DEDENTstatic intPyCF_ONLY_ASTstatic intPyCF_SOURCE_IS_UTF8booleansource_is_utf8
-
Constructor Summary
Constructors Constructor Description CompilerFlags()CompilerFlags(int co_flags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompilerFlagscombine(int flags)CompilerFlagscombine(CompilerFlags flags)static CompilerFlagsgetCompilerFlags()static CompilerFlagsgetCompilerFlags(int flags, PyFrame frame)static CompilerFlagsgetCompilerFlags(CompilerFlags flags, PyFrame frame)booleanisFlagSet(CodeFlag flag)voidsetFlag(CodeFlag flag)inttoBits()java.lang.StringtoString()
-
-
-
Field Detail
-
PyCF_SOURCE_IS_UTF8
public static final int PyCF_SOURCE_IS_UTF8
- See Also:
- Constant Field Values
-
PyCF_DONT_IMPLY_DEDENT
public static final int PyCF_DONT_IMPLY_DEDENT
- See Also:
- Constant Field Values
-
PyCF_ONLY_AST
public static final int PyCF_ONLY_AST
- See Also:
- Constant Field Values
-
only_ast
public boolean only_ast
-
dont_imply_dedent
public boolean dont_imply_dedent
-
source_is_utf8
public boolean source_is_utf8
-
encoding
public java.lang.String encoding
-
-
Method Detail
-
toBits
public int toBits()
-
setFlag
public void setFlag(CodeFlag flag)
-
isFlagSet
public boolean isFlagSet(CodeFlag flag)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCompilerFlags
public static CompilerFlags getCompilerFlags()
-
getCompilerFlags
public static CompilerFlags getCompilerFlags(int flags, PyFrame frame)
-
getCompilerFlags
public static CompilerFlags getCompilerFlags(CompilerFlags flags, PyFrame frame)
-
combine
public CompilerFlags combine(CompilerFlags flags)
-
combine
public CompilerFlags combine(int flags)
-
-