wt.dataops.archivesystem.search
Class ArchiveQueryParser

java.lang.Object
  extended bywt.dataops.archivesystem.search.ArchiveQueryParser
All Implemented Interfaces:
ArchiveQueryParserConstants, ArchiveQueryParserTreeConstants

public class ArchiveQueryParser
extends Object
implements ArchiveQueryParserTreeConstants, ArchiveQueryParserConstants


Nested Class Summary
(package private) static class ArchiveQueryParser.JJCalls
           
private static class ArchiveQueryParser.LookaheadSuccess
           
 
Field Summary
private  ArchiveQueryParser.JJCalls[] jj_2_rtns
           
private  int jj_endpos
           
private  Vector jj_expentries
           
private  int[] jj_expentry
           
private  int jj_gc
           
private  int jj_gen
           
(package private)  JavaCharStream jj_input_stream
           
private  int jj_kind
           
private  int jj_la
           
private  int[] jj_la1
           
private static int[] jj_la1_0
           
private  Token jj_lastpos
           
private  int[] jj_lasttokens
           
private  ArchiveQueryParser.LookaheadSuccess jj_ls
           
 Token jj_nt
           
private  int jj_ntk
           
private  boolean jj_rescan
           
private  Token jj_scanpos
           
private  boolean jj_semLA
           
protected  JJTArchiveQueryParserState jjtree
           
 boolean lookingAhead
           
private static String RESOURCE
           
 Token token
           
 ArchiveQueryParserTokenManager token_source
           
static boolean VERBOSE
           
 
Fields inherited from interface wt.dataops.archivesystem.search.ArchiveQueryParserTreeConstants
JJTATTRIBUTE, JJTCLAUSEEXPR, JJTCLAUSEOP, JJTCOMPOEXPR, JJTKEY, jjtNodeName, JJTQUERYOP, JJTTOPNODE, JJTVALUE
 
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
 
Constructor Summary
ArchiveQueryParser(ArchiveQueryParserTokenManager tm)
           
ArchiveQueryParser(InputStream stream)
           
ArchiveQueryParser(Reader stream)
           
 
Method Summary
 void clause_expr()
           
 void compo_expr_and()
           
 void compo_expr_or()
           
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void identifier()
           
private  boolean jj_2_1(int xla)
           
private  boolean jj_3_1()
           
private  boolean jj_3R_3()
           
private  boolean jj_3R_4()
           
private  void jj_add_error_token(int kind, int pos)
           
private  Token jj_consume_token(int kind)
           
private static void jj_la1_0()
           
private  int jj_ntk()
           
private  void jj_rescan_token()
           
private  void jj_save(int index, int xla)
           
private  boolean jj_scan_token(int kind)
           
 void literal()
           
static void main(String[] args)
           
 void op()
           
static void parse(String args)
           
static void parseQuery(String[] types, String qStr, File hintsFile)
           
static InputStream parseSearchQuery(String[] types, String qStr)
           
 void query_op_and()
           
 void query_op_or()
           
 void ReInit(ArchiveQueryParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 ASTTopNode TopNode()
           
 void value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ArchiveQueryParser

public ArchiveQueryParser(InputStream stream)

ArchiveQueryParser

public ArchiveQueryParser(Reader stream)

ArchiveQueryParser

public ArchiveQueryParser(ArchiveQueryParserTokenManager tm)
Method Detail

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)