public enum PythonWords extends Enum<PythonWords>
Enum Constant and Description |
---|
AND |
AS |
ASSERT |
BOOL
cast to boolean
|
BREAK |
CATCH |
CLASS |
CONTINUE |
DEF |
DEL |
DICT |
ELIF |
ELSE |
EXCEPT |
EXEC |
FALSE
String literal for
false |
FINALLY |
FLOAT
cast to float
|
FOR |
FROM |
GLOBAL |
IF |
IMPORT |
IN |
INT
cast to integer
|
IS |
LAMBDA |
LIST |
LONG
cast to long
|
NONE
String literal for the none type
|
NOT |
OR |
PASS |
PRINT |
RAISE |
RETURN |
STR
cast to string
|
TRUE
String literal for
true |
TRY |
TUPLE |
WHILE |
WITH |
YIELD |
Modifier and Type | Field and Description |
---|---|
static EnumSet<PythonWords> |
BOOLEAN_CALLS
identifiers of calls that are accepted for boolean data types.
|
static EnumSet<PythonWords> |
ENUM_CALLS
identifiers of calls that are accepted for numeric data types.
|
static EnumSet<PythonWords> |
NUMERIC_CALLS
identifiers of calls that are accepted for numeric data types.
|
static EnumSet<PythonWords> |
RESERVED_WORDS
KeyPythonWords reserved in Python.
|
static EnumSet<PythonWords> |
SET_CASTS
|
static EnumSet<PythonWords> |
SET_CONST_BOOL
The literals True and False.
|
static EnumSet<PythonWords> |
SET_CONST_NONE
The literal None.
|
static EnumSet<PythonWords> |
SET_CONSTS
|
static EnumSet<PythonWords> |
SET_EMPTY
Leere Menge.
|
static EnumSet<PythonWords> |
STRING_CALLS
identifiers of calls that are accepted for boolean data types.
|
Modifier and Type | Method and Description |
---|---|
static PythonWords |
get(String identifier) |
String |
getLiteral() |
static PythonWords |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PythonWords[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PythonWords INT
public static final PythonWords LONG
public static final PythonWords FLOAT
public static final PythonWords STR
public static final PythonWords BOOL
public static final PythonWords NONE
public static final PythonWords TRUE
true
public static final PythonWords FALSE
false
public static final PythonWords LIST
public static final PythonWords DICT
public static final PythonWords TUPLE
public static final PythonWords AND
public static final PythonWords DEL
public static final PythonWords FROM
public static final PythonWords NOT
public static final PythonWords WHILE
public static final PythonWords AS
public static final PythonWords ELIF
public static final PythonWords GLOBAL
public static final PythonWords OR
public static final PythonWords WITH
public static final PythonWords ASSERT
public static final PythonWords ELSE
public static final PythonWords IF
public static final PythonWords PASS
public static final PythonWords YIELD
public static final PythonWords BREAK
public static final PythonWords EXCEPT
public static final PythonWords IMPORT
public static final PythonWords PRINT
public static final PythonWords CLASS
public static final PythonWords EXEC
public static final PythonWords IN
public static final PythonWords RAISE
public static final PythonWords CONTINUE
public static final PythonWords FINALLY
public static final PythonWords IS
public static final PythonWords RETURN
public static final PythonWords DEF
public static final PythonWords FOR
public static final PythonWords LAMBDA
public static final PythonWords TRY
public static final PythonWords CATCH
public static final EnumSet<PythonWords> SET_EMPTY
public static final EnumSet<PythonWords> SET_CASTS
public static final EnumSet<PythonWords> SET_CONSTS
public static final EnumSet<PythonWords> SET_CONST_NONE
public static final EnumSet<PythonWords> SET_CONST_BOOL
public static final EnumSet<PythonWords> NUMERIC_CALLS
public static final EnumSet<PythonWords> BOOLEAN_CALLS
public static final EnumSet<PythonWords> STRING_CALLS
public static final EnumSet<PythonWords> ENUM_CALLS
public static final EnumSet<PythonWords> RESERVED_WORDS
public static PythonWords[] values()
for (PythonWords c : PythonWords.values()) System.out.println(c);
public static PythonWords 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 static PythonWords get(String identifier)
identifier
- Ein Bezeichner aus irgend einem Python-Quelltext.public String getLiteral()
Copyright © 2016–2023 MicroNova AG. All rights reserved.