public enum PyInputMode extends Enum<PyInputMode>
Enum Constant and Description |
---|
EXPRESSION
Compile/execute single expression.
|
SCRIPT
Compile/execute multi-statement script code.
|
STATEMENT
Compile/execute single statement code.
|
Modifier and Type | Method and Description |
---|---|
int |
value() |
static PyInputMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PyInputMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PyInputMode STATEMENT
The start symbol from the Python grammar for a
single statement (Py_single_input
in Python PyRun API).
This is the symbol used for the interactive interpreter loop.
public static final PyInputMode SCRIPT
The start symbol from the Python grammar for sequences of
statements as read from a file or other source (Py_file_input
in Python PyRun API).
This is the symbol to use when compiling arbitrarily long Python source code.
public static final PyInputMode EXPRESSION
The start symbol from the Python grammar for sequences of
statements as read from a file or other source (Py_eval_input
in Python PyRun API).
public static PyInputMode[] values()
for (PyInputMode c : PyInputMode.values()) System.out.println(c);
public static PyInputMode 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 nullpublic int value()
Copyright © 2014–2022 Brockmann Consult GmbH. All rights reserved.