public class JCRSQLParser extends Object implements JCRSQLParserTreeConstants, JCRSQLParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
protected org.apache.jackrabbit.spi.commons.query.sql.JJTJCRSQLParserState |
jjtree |
Token |
token |
JCRSQLParserTokenManager |
token_source |
JJTANDEXPRESSION, JJTASCENDINGORDERSPEC, JJTBRACKETEXPRESSION, JJTCONTAINSEXPRESSION, JJTDESCENDINGORDERSPEC, JJTEXCERPTFUNCTION, JJTFROMCLAUSE, JJTIDENTIFIER, JJTLITERAL, JJTLOWERFUNCTION, jjtNodeName, JJTNOTEXPRESSION, JJTORDERBYCLAUSE, JJTORDERSPEC, JJTOREXPRESSION, JJTPREDICATE, JJTQUERY, JJTSELECTLIST, JJTUPPERFUNCTION, JJTVOID, JJTWHERECLAUSE
AMPERSAND, AND, APPROXIMATE_NUMERIC_LITERAL, ASC, ASTERISK, BASE_CHAR, BETWEEN, BY, CHAR_REPRESENTATION, CHAR_STRING_LITERAL, COLON, COMMA, COMMENT, COMMENT_CHAR, COMMENT_INTRO, CONCAT_OPERATOR, CONTAINS, DATE_LITERAL, DATE_STRING, DATE_VALUE, DATETIME_LITERAL, DATETIME_VALUE, DAYS_VALUE, DEFAULT, DELIMITED_IDENTIFIER, DELIMITED_IDENTIFIER_BODY, DELIMITED_IDENTIFIER_PART, DESC, DIGIT, DOUBLE_PERIOD, DOUBLE_QUOTE, DOUBLE_QUOTE_SYMBOL, EOF, EQ_OPERATOR, ESCAPE, EXACT_NUMERIC_LITERAL, EXCERPT, EXPONENT, FROM, GE_OPERATOR, GT_OPERATOR, HOURS_VALUE, IDENTIFIER_BODY, IDENTIFIER_PART, IDENTIFIER_START, IDEOGRAPHIC, IN, IS, LE_OPERATOR, LEFT_BRACKET, LEFT_PAREN, LETTER, LIKE, LOWER, LT_OPERATOR, MANTISSA, MINUS_SIGN, MINUTES_VALUE, MONTHS_VALUE, NE_OPERATOR, NON_DOUBLE_QUOTE_CHAR, NON_QUOTE_CHAR, NOT, NULL, OR, ORDER, PERCENT, PERIOD, PLUS_SIGN, QUESTION_MARK, QUOTE, QUOTE_SYMBOL, REGULAR_IDENTIFIER, RIGHT_BRACKET, RIGHT_PAREN, SECONDS_FRACTION, SECONDS_INTEGER_VALUE, SECONDS_VALUE, SELECT, SEMICOLON, SIGN, SIGNED_INTEGER, SIMILAR, SIMPLE_LATIN_LETTER, SIMPLE_LATIN_LOWER_CASE_LETTER, SIMPLE_LATIN_UPPER_CASE_LETTER, SOLIDUS, SPELLCHECK, TIME_VALUE, TIME_ZONE_INTERVAL, TIMESTAMP_LITERAL, TIMESTAMP_STRING, tokenImage, UNDERSCORE, UNSIGNED_INTEGER, UPPER, VERTICAL_BAR, WHERE, YEARS_VALUE
Constructor and Description |
---|
JCRSQLParser(InputStream stream) |
JCRSQLParser(InputStream stream,
String encoding) |
JCRSQLParser(JCRSQLParserTokenManager tm) |
JCRSQLParser(Reader stream) |
Modifier and Type | Method and Description |
---|---|
void |
AndExpression() |
void |
AscendingOrderSpec() |
void |
BracketExpression() |
String |
CharStringLiteral() |
int |
ComparisonOperation() |
void |
ContainsExpression() |
void |
DescendingOrderSpec() |
void |
disable_tracing() |
void |
enable_tracing() |
Name |
ExcerptFunction() |
void |
FromClause() |
ParseException |
generateParseException() |
Token |
getNextToken() |
Token |
getToken(int index) |
Name |
Identifier() |
void |
Literal() |
Name |
LowerFunction() |
static void |
main(String[] args) |
void |
OrderByClause() |
void |
OrderSpec() |
void |
OrExpression() |
static ASTQuery |
parse(String statement,
NameResolver resolver) |
void |
Predicate() |
void |
PrimaryExpression() |
Name |
PropertyFunction() |
ASTQuery |
Query() |
void |
ReInit(InputStream stream) |
void |
ReInit(InputStream stream,
String encoding) |
void |
ReInit(JCRSQLParserTokenManager tm) |
void |
ReInit(Reader stream) |
void |
SearchCondition() |
void |
SelectItem() |
void |
SelectList() |
void |
TableExpression() |
void |
UnaryExpression() |
Name |
UpperFunction() |
void |
WhereClause() |
protected org.apache.jackrabbit.spi.commons.query.sql.JJTJCRSQLParserState jjtree
public JCRSQLParserTokenManager token_source
public Token token
public Token jj_nt
public JCRSQLParser(InputStream stream)
public JCRSQLParser(InputStream stream, String encoding)
public JCRSQLParser(Reader stream)
public JCRSQLParser(JCRSQLParserTokenManager tm)
public static void main(String[] args) throws ParseException
ParseException
public static ASTQuery parse(String statement, NameResolver resolver) throws ParseException
ParseException
public final ASTQuery Query() throws ParseException
ParseException
public final void SelectList() throws ParseException
ParseException
public final void SelectItem() throws ParseException
ParseException
public final void TableExpression() throws ParseException
ParseException
public final void FromClause() throws ParseException
ParseException
public final void WhereClause() throws ParseException
ParseException
public final void Predicate() throws ParseException
ParseException
public final Name PropertyFunction() throws ParseException
ParseException
public final Name LowerFunction() throws ParseException
ParseException
public final Name UpperFunction() throws ParseException
ParseException
public final int ComparisonOperation() throws ParseException
ParseException
public final void SearchCondition() throws ParseException
ParseException
public final void OrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void BracketExpression() throws ParseException
ParseException
public final void ContainsExpression() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final String CharStringLiteral() throws ParseException
ParseException
public final Name Identifier() throws ParseException
ParseException
public final Name ExcerptFunction() throws ParseException
ParseException
public final void OrderByClause() throws ParseException
ParseException
public final void OrderSpec() throws ParseException
ParseException
public final void AscendingOrderSpec() throws ParseException
ParseException
public final void DescendingOrderSpec() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(JCRSQLParserTokenManager 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 © 2004-2020 The Apache Software Foundation. All Rights Reserved.