public enum PythonKeyword extends Enum<PythonKeyword> implements com.sonar.sslr.api.TokenType
| Enum Constant and Description |
|---|
AND
Logical AND.
|
AS |
ASSERT |
BREAK |
CLASS |
CONTINUE |
DEF |
DEL |
ELIF |
ELSE |
EXCEPT |
FINALLY |
FOR |
FROM |
GLOBAL |
IF |
IMPORT |
IN |
IS |
LAMBDA |
NONE |
NONLOCAL |
NOT |
OR
Logical OR.
|
PASS |
RAISE |
RETURN |
TRY |
WHILE |
WITH |
YIELD |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
boolean |
hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node) |
static String[] |
keywordValues() |
static PythonKeyword |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PythonKeyword[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PythonKeyword NONE
public static final PythonKeyword AND
public static final PythonKeyword AS
public static final PythonKeyword ASSERT
public static final PythonKeyword BREAK
public static final PythonKeyword CLASS
public static final PythonKeyword CONTINUE
public static final PythonKeyword DEF
public static final PythonKeyword DEL
public static final PythonKeyword ELIF
public static final PythonKeyword ELSE
public static final PythonKeyword EXCEPT
public static final PythonKeyword FINALLY
public static final PythonKeyword FOR
public static final PythonKeyword FROM
public static final PythonKeyword GLOBAL
public static final PythonKeyword IF
public static final PythonKeyword IMPORT
public static final PythonKeyword IN
public static final PythonKeyword IS
public static final PythonKeyword LAMBDA
public static final PythonKeyword NONLOCAL
public static final PythonKeyword NOT
public static final PythonKeyword OR
public static final PythonKeyword PASS
public static final PythonKeyword RAISE
public static final PythonKeyword RETURN
public static final PythonKeyword TRY
public static final PythonKeyword WHILE
public static final PythonKeyword WITH
public static final PythonKeyword YIELD
public static PythonKeyword[] values()
for (PythonKeyword c : PythonKeyword.values()) System.out.println(c);
public static PythonKeyword 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 String getName()
getName in interface com.sonar.sslr.api.TokenTypepublic String getValue()
getValue in interface com.sonar.sslr.api.TokenTypepublic boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
hasToBeSkippedFromAst in interface com.sonar.sslr.api.TokenTypepublic static String[] keywordValues()
Copyright © 2011–2018 SonarSource and Waleri Enns. All rights reserved.