wt.dataops.archivesystem.search
Class ArchiveQueryParser
java.lang.Object
wt.dataops.archivesystem.search.ArchiveQueryParser
- All Implemented Interfaces:
- ArchiveQueryParserConstants, ArchiveQueryParserTreeConstants
- public class ArchiveQueryParser
- extends Object
- implements ArchiveQueryParserTreeConstants, ArchiveQueryParserConstants
Fields inherited from interface wt.dataops.archivesystem.search.ArchiveQueryParserConstants |
CHARANY, CHARANYSP, DEFAULT, EOF, LEFT_PAR, OP, QUERY_OP_AND, QUERY_OP_OR, QUOTE, RIGHT_PAR, STRANY, tokenImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jjtree
protected JJTArchiveQueryParserState jjtree
VERBOSE
public static boolean VERBOSE
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
token_source
public ArchiveQueryParserTokenManager token_source
jj_input_stream
JavaCharStream jj_input_stream
token
public Token token
jj_nt
public Token jj_nt
jj_ntk
private int jj_ntk
jj_scanpos
private Token jj_scanpos
jj_lastpos
private Token jj_lastpos
jj_la
private int jj_la
lookingAhead
public boolean lookingAhead
jj_semLA
private boolean jj_semLA
jj_gen
private int jj_gen
jj_la1
private final int[] jj_la1
jj_la1_0
private static int[] jj_la1_0
jj_2_rtns
private final ArchiveQueryParser.JJCalls[] jj_2_rtns
jj_rescan
private boolean jj_rescan
jj_gc
private int jj_gc
jj_ls
private final ArchiveQueryParser.LookaheadSuccess jj_ls
jj_expentries
private Vector jj_expentries
jj_expentry
private int[] jj_expentry
jj_kind
private int jj_kind
jj_lasttokens
private int[] jj_lasttokens
jj_endpos
private int jj_endpos
ArchiveQueryParser
public ArchiveQueryParser(InputStream stream)
ArchiveQueryParser
public ArchiveQueryParser(Reader stream)
ArchiveQueryParser
public ArchiveQueryParser(ArchiveQueryParserTokenManager tm)
parse
public static void parse(String args)
throws WTArchiveSystemException
- Throws:
WTArchiveSystemException
parseQuery
public static void parseQuery(String[] types,
String qStr,
File hintsFile)
throws WTArchiveSystemException
- Throws:
WTArchiveSystemException
parseSearchQuery
public static InputStream parseSearchQuery(String[] types,
String qStr)
throws WTArchiveSystemException
- Throws:
WTArchiveSystemException
main
public static void main(String[] args)
TopNode
public final ASTTopNode TopNode()
throws ParseException
- Throws:
ParseException
identifier
public final void identifier()
throws ParseException
- Throws:
ParseException
value
public final void value()
throws ParseException
- Throws:
ParseException
op
public final void op()
throws ParseException
- Throws:
ParseException
literal
public final void literal()
throws ParseException
- Throws:
ParseException
compo_expr_or
public final void compo_expr_or()
throws ParseException
- Throws:
ParseException
clause_expr
public final void clause_expr()
throws ParseException
- Throws:
ParseException
compo_expr_and
public final void compo_expr_and()
throws ParseException
- Throws:
ParseException
query_op_and
public final void query_op_and()
throws ParseException
- Throws:
ParseException
query_op_or
public final void query_op_or()
throws ParseException
- Throws:
ParseException
jj_2_1
private final boolean jj_2_1(int xla)
jj_3_1
private final boolean jj_3_1()
jj_3R_3
private final boolean jj_3R_3()
jj_3R_4
private final boolean jj_3R_4()
jj_la1_0
private static void jj_la1_0()
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(ArchiveQueryParserTokenManager tm)
jj_consume_token
private final Token jj_consume_token(int kind)
throws ParseException
- Throws:
ParseException
jj_scan_token
private final boolean jj_scan_token(int kind)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
jj_ntk
private final int jj_ntk()
jj_add_error_token
private void jj_add_error_token(int kind,
int pos)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
jj_rescan_token
private final void jj_rescan_token()
jj_save
private final void jj_save(int index,
int xla)