public class EhcacheSearchParser extends Object implements EhcacheSearchParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
EhcacheSearchParserTokenManager |
token_source
Generated Token Manager.
|
DEFAULT, ENUMFQCLASSNAME, EOF, FIXEDINT, FQCLASSNAME, KW_ALL, KW_AND, KW_ASC, KW_AVG, KW_BETWEEN, KW_BOOL_CAST, KW_BYTE_CAST, KW_CHAR_CAST, KW_CLOSED_PAREN, KW_COMMA, KW_COUNT, KW_DATE_CAST, KW_DESC, KW_DOUBLE_CAST, KW_EQ, KW_FLOAT_CAST, KW_FROM, KW_GE, KW_GROUP_BY, KW_GT, KW_ILIKE, KW_IN, KW_INT_CAST, KW_ISBETWEEN, KW_KEY, KW_LE, KW_LIKE, KW_LIMIT, KW_LONG_CAST, KW_LSQUARE, KW_LT, KW_MAX, KW_MIN, KW_NE, KW_NOT, KW_NOT_NULL, KW_NULL, KW_OPEN_PAREN, KW_OR, KW_ORDER_BY, KW_RSQUARE, KW_SELECT, KW_SHORT_ASC, KW_SHORT_CAST, KW_SHORT_DESC, KW_SQLDATE_CAST, KW_STAR, KW_STRING_CAST, KW_SUM, KW_USE_CACHE, KW_USE_CACHE_MANAGER, KW_VALUE, KW_WHERE, QUOTEDSTR, STRING, tokenImage| Constructor and Description |
|---|
EhcacheSearchParser(EhcacheSearchParserTokenManager tm)
Constructor with generated Token Manager.
|
EhcacheSearchParser(InputStream stream)
Constructor with InputStream.
|
EhcacheSearchParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
EhcacheSearchParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MAggregate |
Aggregate()
Aggregate production.
|
MAttribute |
Attribute()
And attibute.
|
String |
CacheName() |
MCriteria |
Criteria()
One monolithic criteria.
|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
ParseModel |
getModel() |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
GroupBy()
Group by production.
|
MCriteria |
ILikeCriteria(MAttribute attr)
An ilike criteria completion production.
|
MCriteria |
InCriteria(MAttribute attr)
A IN criteria completion production.
|
InteractiveCmd |
InteractiveCommand() |
MCriteria |
IsBetweenCriteria(MAttribute attr)
A isbetween production completion.
|
MCriteria |
LikeCriteria(MAttribute attr)
A like criteria completion production.
|
void |
Limit()
Limit production.
|
void |
OrderBy()
Order by production.
|
MCriteria |
PCriteria()
A parenthesized criterium.
|
void |
PostScript()
THe tail end of a select statement, covering group by, order by and limit.
|
ParseModel |
QueryStatement()
Select production.
|
void |
ReInit(EhcacheSearchParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
MCriteria |
SimpleCriteria()
A 'simple' criteria production, i.e.
|
MCriteria.SimpleOp |
SimpleCriteriaOp()
A 'simple' criteria operation, like equals, not equals, less than, etc.
|
net.sf.ehcache.search.parser.EhcacheSearchParser.StringAndToken |
SingleQuotedString()
Single quoted string.
|
void |
SingleTarget()
A single target for selecting into.
|
MCriteria |
SQLBetweenCriteria(MAttribute attr)
A SQL-92 between production completion.
|
void |
TargetList()
List of targets to retrieve in a select.
|
String |
UnQuotedString()
Unquoted string.
|
String |
UseCache()
Production for specifying a cache to use.
|
String |
UseCacheManager()
Production for specifying a cache manager to use.
|
MValue |
Value()
Value.
|
public EhcacheSearchParserTokenManager token_source
public Token token
public Token jj_nt
public EhcacheSearchParser(InputStream stream)
public EhcacheSearchParser(InputStream stream, String encoding)
public EhcacheSearchParser(Reader stream)
public EhcacheSearchParser(EhcacheSearchParserTokenManager tm)
public ParseModel getModel()
public final InteractiveCmd InteractiveCommand() throws ParseException
ParseExceptionpublic final String UseCache() throws ParseException
ParseExceptionpublic final String UseCacheManager() throws ParseException
ParseExceptionpublic final ParseModel QueryStatement() throws ParseException
ParseExceptionpublic final void PostScript()
throws ParseException
ParseExceptionpublic final void GroupBy()
throws ParseException
ParseExceptionpublic final void OrderBy()
throws ParseException
ParseExceptionpublic final void Limit()
throws ParseException
ParseExceptionpublic final MCriteria Criteria() throws ParseException
ParseExceptionpublic final String CacheName() throws ParseException
ParseExceptionpublic final MCriteria PCriteria() throws ParseException
ParseExceptionpublic final MCriteria SimpleCriteria() throws ParseException
, =,<. etc, like, ilike, in, or between.ParseExceptionpublic final MCriteria IsBetweenCriteria(MAttribute attr) throws ParseException
ParseExceptionpublic final MCriteria SQLBetweenCriteria(MAttribute attr) throws ParseException
ParseExceptionpublic final MCriteria InCriteria(MAttribute attr) throws ParseException
ParseExceptionpublic final MCriteria ILikeCriteria(MAttribute attr) throws ParseException
ParseExceptionpublic final MCriteria LikeCriteria(MAttribute attr) throws ParseException
ParseExceptionpublic final MCriteria.SimpleOp SimpleCriteriaOp() throws ParseException
ParseExceptionpublic final MValue Value() throws ParseException
ParseExceptionpublic final void TargetList()
throws ParseException
ParseExceptionpublic final void SingleTarget()
throws ParseException
ParseExceptionpublic final MAggregate Aggregate() throws ParseException
ParseExceptionpublic final MAttribute Attribute() throws ParseException
ParseExceptionpublic final net.sf.ehcache.search.parser.EhcacheSearchParser.StringAndToken SingleQuotedString() throws ParseException
ParseExceptionpublic final String UnQuotedString() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(EhcacheSearchParserTokenManager 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 © 2003–2024 Terracotta, Inc.. All rights reserved.