Class MatlabParserTokenManager
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractTokenManager
-
- net.sourceforge.pmd.lang.matlab.ast.MatlabParserTokenManager
-
- All Implemented Interfaces:
MatlabParserConstants
public class MatlabParserTokenManager extends net.sourceforge.pmd.lang.ast.AbstractTokenManager implements MatlabParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected charcurCharjava.io.PrintStreamdebugStreamDebug output.protected net.sourceforge.pmd.lang.ast.CharStreaminput_streamstatic int[]jjnewLexStateLex State array.static java.lang.String[]jjstrLiteralImagesToken literal values.static java.lang.String[]lexStateNamesLexer state names.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractTokenManager
suppressMap, suppressMarker
-
Fields inherited from interface net.sourceforge.pmd.lang.matlab.ast.MatlabParserConstants
AT, BIN_AND, BIN_OR, BREAK, CASE, CATCH, CLEAR, COLON, COMMA, CONTINUE, DEFAULT, DIGIT, DOT, DOUBLE_EQ, EL_CCT, EL_EXP, EL_LEFTDIV, EL_RIGHTDIV, EL_TIMES, ELSE, ELSEIF, END, EOF, EQ, ESC_SEQ, EXP, EXPONENT, FLOAT, FOR, FUNCTION, GLOBAL, GRT, GRTE, HEX_DIGIT, ID, IF, IN_COMMENT, INT, LBRACE, LEFTDIV, LETTER, LOG_AND, LOG_OR, LPAREN, LSBRACE, LST, LSTE, MINUS, MULTI_LINE_COMMENT, NEG, NEQ, OCTAL_DIGIT, OCTAL_ESC, OTHERWISE, PERSISTENT, PLUS, RBRACE, RETURN, RIGHTDIV, RPAREN, RSBRACE, SEMI, SINGLE_LINE_COMMENT, STRING, SWITCH, TIMES, tokenImage, TR, TRANSPOSE, TRY, UNICODE_ESC, VARARGIN, WHILE
-
-
Constructor Summary
Constructors Constructor Description MatlabParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream)Constructor.MatlabParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokengetNextToken()Get the next Token.protected TokenjjFillToken()voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream)Reinitialise parser.voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Reinitialise parser.voidsetDebugStream(java.io.PrintStream ds)Set debug output.voidSwitchTo(int lexState)Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final java.lang.String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
input_stream
protected net.sourceforge.pmd.lang.ast.CharStream input_stream
-
curChar
protected char curChar
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-