Package com.sonar.sslr.test.minic
Enum MiniCLexer.Keywords
- java.lang.Object
-
- java.lang.Enum<MiniCLexer.Keywords>
-
- com.sonar.sslr.test.minic.MiniCLexer.Keywords
-
- All Implemented Interfaces:
AstNodeType,TokenType,Serializable,Comparable<MiniCLexer.Keywords>
- Enclosing class:
- MiniCLexer
public static enum MiniCLexer.Keywords extends Enum<MiniCLexer.Keywords> implements TokenType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetValue()booleanhasToBeSkippedFromAst(AstNode node)static String[]keywordValues()static MiniCLexer.KeywordsvalueOf(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.
-
-
-
Enum Constant Detail
-
STRUCT
public static final MiniCLexer.Keywords STRUCT
-
INT
public static final MiniCLexer.Keywords INT
-
VOID
public static final MiniCLexer.Keywords VOID
-
RETURN
public static final MiniCLexer.Keywords RETURN
-
IF
public static final MiniCLexer.Keywords IF
-
ELSE
public static final MiniCLexer.Keywords ELSE
-
WHILE
public static final MiniCLexer.Keywords WHILE
-
CONTINUE
public static final MiniCLexer.Keywords CONTINUE
-
BREAK
public static final MiniCLexer.Keywords BREAK
-
-
Method Detail
-
values
public static MiniCLexer.Keywords[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MiniCLexer.Keywords c : MiniCLexer.Keywords.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MiniCLexer.Keywords valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
hasToBeSkippedFromAst
public boolean hasToBeSkippedFromAst(AstNode node)
- Specified by:
hasToBeSkippedFromAstin interfaceTokenType
-
keywordValues
public static String[] keywordValues()
-
-