public static enum MiniCLexer.Keywords extends Enum<MiniCLexer.Keywords> implements TokenType
| Enum Constant and Description |
|---|
BREAK |
CONTINUE |
ELSE |
IF |
INT |
RETURN |
STRUCT |
VOID |
WHILE |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getValue() |
boolean |
hasToBeSkippedFromAst(AstNode node) |
static String[] |
keywordValues() |
static MiniCLexer.Keywords |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MiniCLexer.Keywords[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MiniCLexer.Keywords STRUCT
public static final MiniCLexer.Keywords INT
public static final MiniCLexer.Keywords VOID
public static final MiniCLexer.Keywords RETURN
public static final MiniCLexer.Keywords IF
public static final MiniCLexer.Keywords ELSE
public static final MiniCLexer.Keywords WHILE
public static final MiniCLexer.Keywords CONTINUE
public static final MiniCLexer.Keywords BREAK
public static MiniCLexer.Keywords[] values()
for (MiniCLexer.Keywords c : MiniCLexer.Keywords.values()) System.out.println(c);
public static MiniCLexer.Keywords 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 boolean hasToBeSkippedFromAst(AstNode node)
hasToBeSkippedFromAst in interface TokenTypepublic static String[] keywordValues()
Copyright © 2010–2015 SonarSource. All rights reserved.