org.outerj.daisy.query
Class QueryParser
java.lang.Object
org.outerj.daisy.query.QueryParser
- All Implemented Interfaces:
- QueryParserConstants
- public class QueryParser
- extends java.lang.Object
- implements QueryParserConstants
Fields inherited from interface org.outerj.daisy.query.QueryParserConstants |
AND, ASC, BETWEEN, COMMA, CUSTOMFIELDNAME, DEFAULT, DESC, DIGIT, DOES_NOT_HAVE_VARIANT, EOF, EQ, FIELDNAME, FULL_TEXT, GT, GTEQ, HAS_ALL, HAS_ANY, HAS_EXACTLY, HAS_NONE, HAS_PART, HAS_PART_WITH_MIMETYPE, ID, IN, IN_COLLECTION, INTEGER, IS_LINKED, IS_NOT_LINKED, IS_NOT_NULL, IS_NULL, LETTER, LIKE, LIMIT, LINKS_FROM, LINKS_FROM_VARIANT, LINKS_TO, LINKS_TO_VARIANT, LITERAL, LPAREN, LT, LTEQ, NAME, NOT, NOTEQ, NUMBER, OPTION, OR, ORDER_BY, OTHERS, PARTNAME, RPAREN, SELECT, TEXT, tokenImage, TRUE, WHERE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public QueryParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
QueryParser
public QueryParser(java.io.InputStream stream)
QueryParser
public QueryParser(java.io.Reader stream)
QueryParser
public QueryParser(QueryParserTokenManager tm)
whereClause
public final CondExpr whereClause()
throws ParseException
- Throws:
ParseException
standAloneWhereClause
public final CondExpr standAloneWhereClause()
throws ParseException
- Throws:
ParseException
orExpression
public final CondExpr orExpression()
throws ParseException
- Throws:
ParseException
andExpression
public final CondExpr andExpression()
throws ParseException
- Throws:
ParseException
condition
public final CondExpr condition()
throws ParseException
- Throws:
ParseException
grouping
public final CondExpr grouping()
throws ParseException
- Throws:
ParseException
unaryExpression
public final CondExpr unaryExpression(Identifier identifier)
throws ParseException
- Throws:
ParseException
isNull
public final CondExpr isNull(Identifier identifier)
throws ParseException
- Throws:
ParseException
isNotNull
public final CondExpr isNotNull(Identifier identifier)
throws ParseException
- Throws:
ParseException
multiArgCond
public final CondExpr multiArgCond(Identifier identifier)
throws ParseException
- Throws:
ParseException
betweenExpression
public final CondExpr betweenExpression(boolean not,
Identifier identifier)
throws ParseException
- Throws:
ParseException
inExpression
public final CondExpr inExpression(boolean not,
Identifier identifier)
throws ParseException
- Throws:
ParseException
likeExpression
public final CondExpr likeExpression(boolean not,
Identifier identifier)
throws ParseException
- Throws:
ParseException
inCollection
public final InCollection inCollection()
throws ParseException
- Throws:
ParseException
query
public final Query query()
throws ParseException
- Throws:
ParseException
selectClause
public final IdentifierList selectClause()
throws ParseException
- Throws:
ParseException
orderByClause
public final java.lang.Object[] orderByClause()
throws ParseException
- Throws:
ParseException
orderByItem
public final void orderByItem(IdentifierList identifiers,
java.util.List directions)
throws ParseException
- Throws:
ParseException
identifierList
public final IdentifierList identifierList()
throws ParseException
- Throws:
ParseException
limitClause
public final int limitClause()
throws ParseException
- Throws:
ParseException
optionClause
public final java.util.Map optionClause()
throws ParseException
- Throws:
ParseException
fullTextClause
public final java.lang.Object[] fullTextClause()
throws ParseException
- Returns array containing two items: first is a string containing the fulltext
query, the second is a CondExpr containing further conditions. The second one
is optional, and can thus be null.
- Throws:
ParseException
linksToOrFrom
public final LinksToOrFrom linksToOrFrom()
throws ParseException
- Throws:
ParseException
linksToOrFromVariant
public final LinksToOrFrom linksToOrFromVariant()
throws ParseException
- Throws:
ParseException
isLinked
public final IsLinked isLinked()
throws ParseException
- Throws:
ParseException
isNotLinked
public final IsLinked isNotLinked()
throws ParseException
- Throws:
ParseException
hasPartWithMimeType
public final HasPartWithMimeType hasPartWithMimeType()
throws ParseException
- Throws:
ParseException
hasPart
public final HasPart hasPart()
throws ParseException
- Throws:
ParseException
doesNotHaveVariant
public final DoesNotHaveVariant doesNotHaveVariant()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(QueryParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © -2005 . All Rights Reserved.