Open SiteSearch 4.1.1
Final

ORG.oclc.qparse
Class Z3958Parser

java.lang.Object
  |
  +--ORG.oclc.qparse.Z3958Parser

public class Z3958Parser
extends Object
implements Z3958ParserTreeConstants, Z3958ParserConstants

Object that takes infix boolean strings to rpn aa:def and bb:ghi => def/u=x;s=y; ghi/u=w;s=z; and


Field Summary
protected  String defaultIndex
          Default index
protected  String defaultNearQualifier
          Default near qualifier
protected  String defaultOperator
          Default operator
protected  String defaultWithinQualifier
          Default within qualifier
protected  IndexMap[] indexMap
          Index Abbrivation Map for the DB
 Token jj_nt
           
protected  ORG.oclc.qparse.JJTZ3958ParserState jjtree
           
 boolean lookingAhead
           
static int NOPOLISH
           
static int POLISH
           
 Token token
           
 Z3958ParserTokenManager token_source
           
 
Constructor Summary
Z3958Parser(InputStream stream)
           
Z3958Parser(Reader stream)
           
Z3958Parser(Z3958ParserTokenManager tm)
           
 
Method Summary
 String BooleanOp()
           
static boolean debug()
           
 void disable_tracing()
           
 void enable_tracing()
           
protected  IndexMap findIndexMap(String abb)
           
protected  Map findMap(String abb)
           
 ParseException generateParseException()
           
 int getMode()
           
 Token getNextToken()
           
 Token getToken(int index)
           
static void main(String[] args)
           
 boolean mode(int m)
           
 String prettyMode(int m)
           
 void ProxGroup()
           
 void ProxOp()
           
 void QualifierList(StringBuffer indexes)
           
 String RangeOp()
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 void ReInit(Z3958ParserTokenManager tm)
           
 String SearchElement()
           
 void SearchGroup()
           
 String SearchParm()
           
 String SearchTerm(String indexes)
           
 void setMode(int m)
           
 void setUp(DbAttributes attrib, String operator)
          Set up global parser state (default to NOPOLISH or not to run the filter classes on the terms).
 void setUp(DbAttributes attrib, String operator, int m)
          Set up global parser state.
 void SGPrime()
           
 ASTStart Start()
           
 String Value(String id)
           
 void ValueGroup()
           
 String ValueParm(String id)
           
 boolean verbose()
           
 String Word(String indexes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected ORG.oclc.qparse.JJTZ3958ParserState jjtree

indexMap

protected IndexMap[] indexMap
Index Abbrivation Map for the DB

defaultOperator

protected String defaultOperator
Default operator
See Also:
IndexMap

defaultIndex

protected String defaultIndex
Default index
See Also:
IndexMap

defaultWithinQualifier

protected String defaultWithinQualifier
Default within qualifier

defaultNearQualifier

protected String defaultNearQualifier
Default near qualifier

POLISH

public static final int POLISH

NOPOLISH

public static final int NOPOLISH

token_source

public Z3958ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

Z3958Parser

public Z3958Parser(InputStream stream)

Z3958Parser

public Z3958Parser(Reader stream)

Z3958Parser

public Z3958Parser(Z3958ParserTokenManager tm)
Method Detail

main

public static void main(String[] args)
                 throws IOException

debug

public static boolean debug()

verbose

public boolean verbose()

getMode

public int getMode()

setMode

public void setMode(int m)

mode

public boolean mode(int m)

prettyMode

public String prettyMode(int m)

setUp

public void setUp(DbAttributes attrib,
                  String operator)
Set up global parser state (default to NOPOLISH or not to run the filter classes on the terms).

setUp

public void setUp(DbAttributes attrib,
                  String operator,
                  int m)
Set up global parser state.

findMap

protected Map findMap(String abb)

findIndexMap

protected IndexMap findIndexMap(String abb)

Start

public final ASTStart Start()
                     throws ParseException

SearchGroup

public final void SearchGroup()
                       throws ParseException

SGPrime

public final void SGPrime()
                   throws ParseException

SearchElement

public final String SearchElement()
                           throws ParseException

SearchParm

public final String SearchParm()
                        throws ParseException

ProxGroup

public final void ProxGroup()
                     throws ParseException

ValueGroup

public final void ValueGroup()
                      throws ParseException

ValueParm

public final String ValueParm(String id)
                       throws ParseException

SearchTerm

public final String SearchTerm(String indexes)
                        throws ParseException

Word

public final String Word(String indexes)
                  throws ParseException

Value

public final String Value(String id)
                   throws ParseException

QualifierList

public final void QualifierList(StringBuffer indexes)
                         throws ParseException

ProxOp

public final void ProxOp()
                  throws ParseException

BooleanOp

public final String BooleanOp()
                       throws ParseException

RangeOp

public final String RangeOp()
                     throws ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(Z3958ParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()

Open SiteSearch 4.1.1
Final