|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.parser.ParserTokenManager
public class ParserTokenManager
Token Manager.
Field Summary | |
---|---|
protected char |
curChar
|
boolean |
debugPrint
|
PrintStream |
debugStream
Debug output. |
boolean |
inDirective
|
protected CharStream |
input_stream
|
boolean |
inSet
|
static int[] |
jjnewLexState
Lex State array. |
static String[] |
jjstrLiteralImages
Token literal values. |
static String[] |
lexStateNames
Lexer state names. |
Constructor Summary | |
---|---|
ParserTokenManager(CharStream stream)
Constructor. |
|
ParserTokenManager(CharStream stream,
int lexState)
Constructor. |
Method Summary | |
---|---|
void |
clearStateVars()
Clears all state variables, resets to start values, clears stateStack. |
Token |
getNextToken()
Get the next Token. |
protected Token |
jjFillToken()
|
void |
ReInit(CharStream stream)
Reinitialise parser. |
void |
ReInit(CharStream stream,
int lexState)
Reinitialise parser. |
void |
setDebugStream(PrintStream ds)
Set debug output. |
boolean |
stateStackPop()
pushes the current state onto the 'state stack', and maintains the parens counts public because we need it in PD & VM handling |
boolean |
stateStackPush()
pops a state off the stack, and restores paren counts |
void |
SwitchTo(int lexState)
Switch to specified lex state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean debugPrint
public boolean inDirective
public boolean inSet
public PrintStream debugStream
public static final String[] jjstrLiteralImages
public static final String[] lexStateNames
public static final int[] jjnewLexState
protected CharStream input_stream
protected char curChar
Constructor Detail |
---|
public ParserTokenManager(CharStream stream)
public ParserTokenManager(CharStream stream, int lexState)
Method Detail |
---|
public boolean stateStackPop()
public boolean stateStackPush()
public void clearStateVars()
public void setDebugStream(PrintStream ds)
public void ReInit(CharStream stream)
public void ReInit(CharStream stream, int lexState)
public void SwitchTo(int lexState)
protected Token jjFillToken()
public Token getNextToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |