Package com.sonar.sslr.test.minic
Enum MiniCLexer.Punctuators
- java.lang.Object
-
- java.lang.Enum<MiniCLexer.Punctuators>
-
- com.sonar.sslr.test.minic.MiniCLexer.Punctuators
-
- All Implemented Interfaces:
AstNodeType,TokenType,Serializable,Comparable<MiniCLexer.Punctuators>
- Enclosing class:
- MiniCLexer
public static enum MiniCLexer.Punctuators extends Enum<MiniCLexer.Punctuators> implements TokenType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetValue()booleanhasToBeSkippedFromAst(AstNode node)static MiniCLexer.PunctuatorsvalueOf(String name)Returns the enum constant of this type with the specified name.static MiniCLexer.Punctuators[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAREN_L
public static final MiniCLexer.Punctuators PAREN_L
-
PAREN_R
public static final MiniCLexer.Punctuators PAREN_R
-
BRACE_L
public static final MiniCLexer.Punctuators BRACE_L
-
BRACE_R
public static final MiniCLexer.Punctuators BRACE_R
-
EQ
public static final MiniCLexer.Punctuators EQ
-
COMMA
public static final MiniCLexer.Punctuators COMMA
-
SEMICOLON
public static final MiniCLexer.Punctuators SEMICOLON
-
ADD
public static final MiniCLexer.Punctuators ADD
-
SUB
public static final MiniCLexer.Punctuators SUB
-
MUL
public static final MiniCLexer.Punctuators MUL
-
DIV
public static final MiniCLexer.Punctuators DIV
-
EQEQ
public static final MiniCLexer.Punctuators EQEQ
-
NE
public static final MiniCLexer.Punctuators NE
-
LT
public static final MiniCLexer.Punctuators LT
-
LTE
public static final MiniCLexer.Punctuators LTE
-
GT
public static final MiniCLexer.Punctuators GT
-
GTE
public static final MiniCLexer.Punctuators GTE
-
INC
public static final MiniCLexer.Punctuators INC
-
DEC
public static final MiniCLexer.Punctuators DEC
-
HASH
public static final MiniCLexer.Punctuators HASH
-
-
Method Detail
-
values
public static MiniCLexer.Punctuators[] 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.Punctuators c : MiniCLexer.Punctuators.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.Punctuators 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
-
-