|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PythonKeyword>
org.sonar.python.api.PythonKeyword
public enum PythonKeyword
http://docs.python.org/reference/lexical_analysis.html#keywords
| Enum Constant Summary | |
|---|---|
AND
Logical AND. |
|
AS
|
|
ASSERT
|
|
BREAK
|
|
CLASS
|
|
CONTINUE
|
|
DEF
|
|
DEL
|
|
ELIF
|
|
ELSE
|
|
EXCEPT
|
|
FALSE
|
|
FINALLY
|
|
FOR
|
|
FROM
|
|
GLOBAL
|
|
IF
|
|
IMPORT
|
|
IN
|
|
IS
|
|
LAMBDA
|
|
NONE
|
|
NONLOCAL
|
|
NOT
|
|
OR
Logical OR. |
|
PASS
|
|
RAISE
|
|
RETURN
|
|
TRUE
|
|
TRY
|
|
WHILE
|
|
WITH
|
|
YIELD
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PythonKeyword FALSE
public static final PythonKeyword NONE
public static final PythonKeyword TRUE
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
| Method Detail |
|---|
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 name
NullPointerException - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||