public class SQLTemplateParser extends Object implements SQLTemplateParserTreeConstants, SQLTemplateParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTSQLTemplateParserState |
jjtree |
Token |
token
Current token.
|
SQLTemplateParserTokenManager |
token_source
Generated Token Manager.
|
JJTARRAY, JJTBLOCK, JJTBOOLSCALAR, JJTDIRECTIVE, JJTEXPRESSION, JJTFLOATSCALAR, JJTIFELSE, JJTINTSCALAR, JJTMETHOD, jjtNodeName, JJTSTRINGSCALAR, JJTTEXT, JJTVARIABLE, JJTVOID
ARGS, COMMA, DEC_DIGITS, DEC_FLT, DEFAULT, DIGIT, DOLLAR, DOT, DOUBLE_QUOTED_STRING, ELSE, END, EOF, ESC, EXPONENT, FALSE, FLOAT_LITERAL, FLT_SUFF, IDENTIFIER, IF, IN_SINGLE_LINE_COMMENT, INT_LITERAL, LBRACKET, LETTER, LSBRACKET, NOT_TEXT, RBRACKET, RSBRACKET, SHARP, SINGLE_LINE_COMMENT_END, SINGLE_QUOTED_STRING, STRING_ESC, TEXT, TEXT_OTHER, tokenImage, TRUE, WithinDoubleQuoteLiteral, WithinSingleQuoteLiteral
Constructor and Description |
---|
SQLTemplateParser(InputStream stream)
Constructor with InputStream.
|
SQLTemplateParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
SQLTemplateParser(Reader stream)
Constructor.
|
SQLTemplateParser(SQLTemplateParserTokenManager tm)
Constructor with generated Token Manager.
|
Modifier and Type | Method and Description |
---|---|
void |
array() |
void |
block() |
void |
directive() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
void |
expression() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
ifElse() |
void |
method() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
ReInit(SQLTemplateParserTokenManager tm)
Reinitialise.
|
void |
scalar() |
Node |
template() |
void |
text() |
void |
variable() |
protected JJTSQLTemplateParserState jjtree
public SQLTemplateParserTokenManager token_source
public Token token
public Token jj_nt
public SQLTemplateParser(InputStream stream)
public SQLTemplateParser(InputStream stream, String encoding)
public SQLTemplateParser(Reader stream)
public SQLTemplateParser(SQLTemplateParserTokenManager tm)
public final Node template() throws ParseException
ParseException
public final void block() throws ParseException
ParseException
public final void text() throws ParseException
ParseException
public final void ifElse() throws ParseException
ParseException
public final void directive() throws ParseException
ParseException
public final void expression() throws ParseException
ParseException
public final void scalar() throws ParseException
ParseException
public final void variable() throws ParseException
ParseException
public final void method() throws ParseException
ParseException
public final void array() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(SQLTemplateParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.