Class MatlabTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.matlab.ast.MatlabTokenKinds
-
@InternalApi @Generated("org.javacc.javacc") public final class MatlabTokenKinds extends Object
Token kinds (JavaccToken.kind
) for this language.
-
-
Field Summary
Fields Modifier and Type Field Description static int
AT
static int
BIN_AND
static int
BIN_OR
static int
BREAK
static int
CASE
static int
CATCH
static int
CLEAR
static int
COLON
static int
COMMA
static int
CONTINUE
static int
DIGIT
static int
DOT
static int
DOUBLE_EQ
static int
DSTRING
static int
EL_CCT
static int
EL_EXP
static int
EL_LEFTDIV
static int
EL_RIGHTDIV
static int
EL_TIMES
static int
ELSE
static int
ELSEIF
static int
END
static int
EOF
static int
EQ
static int
ESC_SEQ
static int
EXP
static int
EXPONENT
static int
FLOAT
static int
FOR
static int
FUNCTION
static int
GLOBAL
static int
GRT
static int
GRTE
static int
HEX_DIGIT
static int
ID
static int
IF
static int
INT
static int
LBRACE
static int
LEFTDIV
static int
LETTER
static int
LOG_AND
static int
LOG_OR
static int
LPAREN
static int
LSBRACE
static int
LST
static int
LSTE
static int
MINUS
static int
MULTI_LINE_COMMENT
static int
NEG
static int
NEQ
static int
OCTAL_DIGIT
static int
OCTAL_ESC
static int
OTHERWISE
static int
PERSISTENT
static int
PLUS
static int
QUESTIONMARK
static int
RBRACE
static int
RETURN
static int
RIGHTDIV
static int
RPAREN
static int
RSBRACE
static int
SEMI
static int
SINGLE_LINE_COMMENT
static int
STRING
static int
SWITCH
static int
TIMES
static List<String>
TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind.static int
TR
static int
TRY
static int
UNICODE_ESC
static int
VARARGIN
static int
WHILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable String
describe(int kind)
Returns a string describing the given token kind.static net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken>
newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs)
Returns a new token manager for this language.
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
SINGLE_LINE_COMMENT
public static final int SINGLE_LINE_COMMENT
- See Also:
- Constant Field Values
-
MULTI_LINE_COMMENT
public static final int MULTI_LINE_COMMENT
- See Also:
- Constant Field Values
-
SEMI
public static final int SEMI
- See Also:
- Constant Field Values
-
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
-
LBRACE
public static final int LBRACE
- See Also:
- Constant Field Values
-
RBRACE
public static final int RBRACE
- See Also:
- Constant Field Values
-
LSBRACE
public static final int LSBRACE
- See Also:
- Constant Field Values
-
RSBRACE
public static final int RSBRACE
- See Also:
- Constant Field Values
-
AT
public static final int AT
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
QUESTIONMARK
public static final int QUESTIONMARK
- See Also:
- Constant Field Values
-
DOUBLE_EQ
public static final int DOUBLE_EQ
- See Also:
- Constant Field Values
-
LOG_OR
public static final int LOG_OR
- See Also:
- Constant Field Values
-
LOG_AND
public static final int LOG_AND
- See Also:
- Constant Field Values
-
LSTE
public static final int LSTE
- See Also:
- Constant Field Values
-
GRTE
public static final int GRTE
- See Also:
- Constant Field Values
-
NEQ
public static final int NEQ
- See Also:
- Constant Field Values
-
EL_TIMES
public static final int EL_TIMES
- See Also:
- Constant Field Values
-
EL_LEFTDIV
public static final int EL_LEFTDIV
- See Also:
- Constant Field Values
-
EL_RIGHTDIV
public static final int EL_RIGHTDIV
- See Also:
- Constant Field Values
-
EL_EXP
public static final int EL_EXP
- See Also:
- Constant Field Values
-
EL_CCT
public static final int EL_CCT
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
BIN_OR
public static final int BIN_OR
- See Also:
- Constant Field Values
-
BIN_AND
public static final int BIN_AND
- See Also:
- Constant Field Values
-
LST
public static final int LST
- See Also:
- Constant Field Values
-
GRT
public static final int GRT
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
NEG
public static final int NEG
- See Also:
- Constant Field Values
-
TIMES
public static final int TIMES
- See Also:
- Constant Field Values
-
LEFTDIV
public static final int LEFTDIV
- See Also:
- Constant Field Values
-
RIGHTDIV
public static final int RIGHTDIV
- See Also:
- Constant Field Values
-
EXP
public static final int EXP
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
- See Also:
- Constant Field Values
-
CASE
public static final int CASE
- See Also:
- Constant Field Values
-
CATCH
public static final int CATCH
- See Also:
- Constant Field Values
-
CONTINUE
public static final int CONTINUE
- See Also:
- Constant Field Values
-
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
-
ELSEIF
public static final int ELSEIF
- See Also:
- Constant Field Values
-
END
public static final int END
- See Also:
- Constant Field Values
-
FOR
public static final int FOR
- See Also:
- Constant Field Values
-
FUNCTION
public static final int FUNCTION
- See Also:
- Constant Field Values
-
GLOBAL
public static final int GLOBAL
- See Also:
- Constant Field Values
-
IF
public static final int IF
- See Also:
- Constant Field Values
-
OTHERWISE
public static final int OTHERWISE
- See Also:
- Constant Field Values
-
PERSISTENT
public static final int PERSISTENT
- See Also:
- Constant Field Values
-
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
-
SWITCH
public static final int SWITCH
- See Also:
- Constant Field Values
-
TRY
public static final int TRY
- See Also:
- Constant Field Values
-
VARARGIN
public static final int VARARGIN
- See Also:
- Constant Field Values
-
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
-
CLEAR
public static final int CLEAR
- See Also:
- Constant Field Values
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
LETTER
public static final int LETTER
- See Also:
- Constant Field Values
-
INT
public static final int INT
- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
-
EXPONENT
public static final int EXPONENT
- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGIT
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
DSTRING
public static final int DSTRING
- See Also:
- Constant Field Values
-
ESC_SEQ
public static final int ESC_SEQ
- See Also:
- Constant Field Values
-
UNICODE_ESC
public static final int UNICODE_ESC
- See Also:
- Constant Field Values
-
OCTAL_ESC
public static final int OCTAL_ESC
- See Also:
- Constant Field Values
-
HEX_DIGIT
public static final int HEX_DIGIT
- See Also:
- Constant Field Values
-
OCTAL_DIGIT
public static final int OCTAL_DIGIT
- See Also:
- Constant Field Values
-
TR
public static final int TR
- See Also:
- Constant Field Values
-
TOKEN_NAMES
public static final List<String> TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind. See alsodescribe(int)
.
-
-
Method Detail
-
describe
public static @Nullable String describe(int kind)
Returns a string describing the given token kind. Returns null if the kind is unknown.- Parameters:
kind
- Kind of token- Returns:
- A string describing the given kind
-
newTokenManager
@InternalApi public static net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> newTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs)
Returns a new token manager for this language. The CharStream should be configured with the correct language-specific escaping and token document. This is not a published API, it's intended to be used as a basis for a CPD Tokenizer.
-
-