public enum PythonTokenType extends Enum<PythonTokenType> implements com.sonar.sslr.api.TokenType
| Enum Constant and Description |
|---|
DEDENT |
INDENT |
NEWLINE |
NUMBER |
STRING |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
boolean |
hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node) |
static PythonTokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PythonTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PythonTokenType NUMBER
public static final PythonTokenType STRING
public static final PythonTokenType INDENT
public static final PythonTokenType DEDENT
public static final PythonTokenType NEWLINE
public static PythonTokenType[] values()
for (PythonTokenType c : PythonTokenType.values()) System.out.println(c);
public static PythonTokenType 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.TokenTypeCopyright © 2011–2015 SonarSource and Waleri Enns. All rights reserved.