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 AbstractTokenManager implements VmParserConstants
Deprecated.Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected char
curChar
Deprecated.boolean
debugPrint
Deprecated.PrintStream
debugStream
Deprecated.Debug output.boolean
inDirective
Deprecated.protected CharStream
input_stream
Deprecated.boolean
inSet
Deprecated.static int[]
jjnewLexState
Deprecated.Lex State array.static String[]
jjstrLiteralImages
Deprecated.Token literal values.static String[]
lexStateNames
Deprecated.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(CharStream stream)
Deprecated.Constructor.VmParserTokenManager(CharStream stream, int lexState)
Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clearStateVars()
Deprecated.Clears all state variables, resets to start values, clears stateStack.Token
getNextToken()
Deprecated.Get the next Token.protected Token
jjFillToken()
Deprecated.void
ReInit(CharStream stream)
Deprecated.Reinitialise parser.void
ReInit(CharStream stream, int lexState)
Deprecated.Reinitialise parser.void
setDebugStream(PrintStream ds)
Deprecated.Set debug output.boolean
stateStackPop()
Deprecated.pushes the current state onto the 'state stack', and maintains the parens counts public because we need it in PD & VM handlingboolean
stateStackPush()
Deprecated.pops a state off the stack, and restores paren countsvoid
SwitchTo(int lexState)
Deprecated.Switch to specified lex state.-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractTokenManager
getFileName, getSuppressMap, setFileName, setSuppressMarker
-
-
-
-
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 CharStream input_stream
Deprecated.
-
curChar
protected char curChar
Deprecated.
-
-
Constructor Detail
-
VmParserTokenManager
public VmParserTokenManager(CharStream stream)
Deprecated.Constructor.
-
VmParserTokenManager
public VmParserTokenManager(CharStream stream, int lexState)
Deprecated.Constructor.
-
-
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(CharStream stream)
Deprecated.Reinitialise parser.
-
ReInit
public void ReInit(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.
-
-