Package net.sourceforge.pmd.lang.vm.ast
Class VmParserTokenManager
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractTokenManager
-
- net.sourceforge.pmd.lang.vm.ast.VmParserTokenManager
-
- All Implemented Interfaces:
VmParserConstants
@Deprecated @InternalApi public class VmParserTokenManager extends net.sourceforge.pmd.lang.ast.AbstractTokenManager implements VmParserConstants
Deprecated.Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected charcurCharDeprecated.booleandebugPrintDeprecated.PrintStreamdebugStreamDeprecated.Debug output.booleaninDirectiveDeprecated.protected net.sourceforge.pmd.lang.ast.CharStreaminput_streamDeprecated.booleaninSetDeprecated.static int[]jjnewLexStateDeprecated.Lex State array.static String[]jjstrLiteralImagesDeprecated.Token literal values.static String[]lexStateNamesDeprecated.Lexer state names.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractTokenManager
suppressMap, suppressMarker
-
Fields inherited from interface net.sourceforge.pmd.lang.vm.ast.VmParserConstants
ALPHA_CHAR, ALPHANUM_CHAR, BRACKETED_WORD, COLON, COMMA, DEFAULT, DIGIT, DIRECTIVE, DIRECTIVE_CHAR, DIRECTIVE_TERMINATOR, DIVIDE, DOLLAR, DOLLARBANG, DOT, DOUBLE_ESCAPE, DOUBLEDOT, ELSE_DIRECTIVE, ELSEIF_DIRECTIVE, EMPTY_INDEX, END, EOF, EQUALS, ESCAPE, ESCAPE_DIRECTIVE, EXPONENT, FALSE, FLOATING_POINT_LITERAL, FOREACH_DIRECTIVE, FORMAL_COMMENT, HASH, IDENTIFIER, IDENTIFIER_CHAR, IF_DIRECTIVE, IN, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, IN_TEXTBLOCK, INDEX_LBRACKET, INDEX_RBRACKET, INTEGER_LITERAL, LBRACKET, LCURLY, LEFT_CURLEY, LETTER, LOGICAL_AND, LOGICAL_EQUALS, LOGICAL_GE, LOGICAL_GT, LOGICAL_LE, LOGICAL_LT, LOGICAL_NOT, LOGICAL_NOT_EQUALS, LOGICAL_OR, LPAREN, MINUS, MODULUS, MULTI_LINE_COMMENT, MULTIPLY, NEWLINE, PLUS, PRE_DIRECTIVE, RBRACKET, RCURLY, REFERENCE, REFERENCE_TERMINATOR, REFINDEX, REFMOD, REFMOD2, REFMOD2_RPAREN, REFMODIFIER, RIGHT_CURLEY, RPAREN, SET_DIRECTIVE, SINGLE_LINE_COMMENT, SINGLE_LINE_COMMENT_START, STRING_LITERAL, TEXT, TEXTBLOCK, tokenImage, TRUE, WHITESPACE, WORD
-
-
Constructor Summary
Constructors Constructor Description VmParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream)Deprecated.Constructor.VmParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclearStateVars()Deprecated.Clears all state variables, resets to start values, clears stateStack.TokengetNextToken()Deprecated.Get the next Token.protected TokenjjFillToken()Deprecated.voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream)Deprecated.Reinitialise parser.voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Deprecated.Reinitialise parser.voidsetDebugStream(PrintStream ds)Deprecated.Set debug output.booleanstateStackPop()Deprecated.pushes the current state onto the 'state stack', and maintains the parens counts public because we need it in PD & VM handlingbooleanstateStackPush()Deprecated.pops a state off the stack, and restores paren countsvoidSwitchTo(int lexState)Deprecated.Switch to specified lex state.
-
-
-
Field Detail
-
debugPrint
public boolean debugPrint
Deprecated.
-
inDirective
public boolean inDirective
Deprecated.
-
inSet
public boolean inSet
Deprecated.
-
debugStream
public PrintStream debugStream
Deprecated.Debug output.
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Deprecated.Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Deprecated.Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Deprecated.Lex State array.
-
input_stream
protected net.sourceforge.pmd.lang.ast.CharStream input_stream
Deprecated.
-
curChar
protected char curChar
Deprecated.
-
-
Method Detail
-
stateStackPop
public boolean stateStackPop()
Deprecated.pushes the current state onto the 'state stack', and maintains the parens counts public because we need it in PD & VM handling- Returns:
- boolean : success. It can fail if the state machine gets messed up (do don't mess it up :)
-
stateStackPush
public boolean stateStackPush()
Deprecated.pops a state off the stack, and restores paren counts- Returns:
- boolean : success of operation
-
clearStateVars
public void clearStateVars()
Deprecated.Clears all state variables, resets to start values, clears stateStack. Call before parsing.
-
setDebugStream
public void setDebugStream(PrintStream ds)
Deprecated.Set debug output.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream)
Deprecated.Reinitialise parser.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Deprecated.Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Deprecated.Switch to specified lex state.
-
jjFillToken
protected Token jjFillToken()
Deprecated.
-
getNextToken
public Token getNextToken()
Deprecated.Get the next Token.
-
-