Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.queryParser.surround.parser
Class QueryParser

    java.lang.Object
      org.apache.lucene.queryParser.surround.parser.QueryParser

All Implemented Interfaces:
  QueryParserConstants

    public class QueryParser

extends Object
implements QueryParserConstants

This class is generated by JavaCC. The only method that clients should need to call is parse().

Field Summary
`Token` | `jj_nt`
`boolean` | `lookingAhead`
`Token` | `token`
`QueryParserTokenManager` | `token_source`

Fields inherited from interface org.apache.lucene.queryParser.surround.parser.QueryParserConstants
`_DISTOP_NUM, _NUM_CHAR, _ONE_CHAR, _STAR, _TERM_CHAR, _WHITESPACE, AND, Boost, CARAT, COLON, COMMA, DEFAULT, EOF, LPAREN, N, NOT, NUMBER, OR, QUOTED, RPAREN, SUFFIXTERM, TERM, tokenImage, TRUNCQUOTED, TRUNCTERM, W`

Constructor Summary
`QueryParser()`
`QueryParser(CharStream stream)`
`QueryParser(QueryParserTokenManager tm)`

Method Summary
`protected boolean` | `allowedSuffix(String suffixed)`
`protected boolean` | `allowedTruncation(String truncated)`
`SrndQuery` | `AndQuery()`
`protected static void` | `checkDistanceSubQueries(DistanceQuery distq, String opName)`
`void` | `disable_tracing()`
`void` | `enable_tracing()`
`SrndQuery` | `FieldsQuery()`
`List` | `FieldsQueryList()`
`ParseException` | `generateParseException()`
`protected SrndQuery` | `getAndQuery(List queries, boolean infix, Token andToken)`
`protected SrndQuery` | `getDistanceQuery(List queries, boolean infix, Token dToken, boolean ordered)`
`protected SrndQuery` | `getFieldsQuery(SrndQuery q, ArrayList fieldNames)`
`Token` | `getNextToken()`
`protected SrndQuery` | `getNotQuery(List queries, Token notToken)`
`protected static int` | `getOpDistance(String distanceOp)`
`protected SrndQuery` | `getOrQuery(List queries, boolean infix, Token orToken)`
`protected SrndQuery` | `getPrefixQuery(String prefix, boolean quoted)`
`protected SrndQuery` | `getTermQuery(String term, boolean quoted)`
`Token` | `getToken(int index)`
`protected SrndQuery` | `getTruncQuery(String truncated)`
`SrndQuery` | `NotQuery()`
`SrndQuery` | `NQuery()`
`ArrayList` | `OptionalFields()`
`void` | `OptionalWeights(SrndQuery q)`
`SrndQuery` | `OrQuery()`
`static SrndQuery` | `parse(String query)`
`SrndQuery` | `parse2(String query)`
`SrndQuery` | `PrefixOperatorQuery()`
`SrndQuery` | `PrimaryQuery()`
`void` | `ReInit(CharStream stream)`
`void` | `ReInit(QueryParserTokenManager tm)`
`SrndQuery` | `SimpleTerm()`
`SrndQuery` | `TopSrndQuery()`
`SrndQuery` | `WQuery()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### token_source

    public QueryParserTokenManager token_source

### token

    public Token token

### jj_nt

    public Token jj_nt

### lookingAhead

    public boolean lookingAhead

Constructor Detail

### QueryParser

    public QueryParser()

### QueryParser

    public QueryParser(CharStream stream)

### QueryParser

    public QueryParser(QueryParserTokenManager tm)

Method Detail

### parse

    public static SrndQuery parse(String query)
                           throws ParseException

  Throws:
    `ParseException`

### parse2

    public SrndQuery parse2(String query)
                     throws ParseException

  Throws:
    `ParseException`

### getFieldsQuery

    protected SrndQuery getFieldsQuery(SrndQuery q,
                                       ArrayList fieldNames)

### getOrQuery

    protected SrndQuery getOrQuery(List queries,
                                   boolean infix,
                                   Token orToken)

### getAndQuery

    protected SrndQuery getAndQuery(List queries,
                                    boolean infix,
                                    Token andToken)

### getNotQuery

    protected SrndQuery getNotQuery(List queries,
                                    Token notToken)

### getOpDistance

    protected static int getOpDistance(String distanceOp)

### checkDistanceSubQueries

    protected static void checkDistanceSubQueries(DistanceQuery distq,
                                                  String opName)
                                           throws ParseException

  Throws:
    `ParseException`

### getDistanceQuery

    protected SrndQuery getDistanceQuery(List queries,
                                         boolean infix,
                                         Token dToken,
                                         boolean ordered)
                                  throws ParseException

  Throws:
    `ParseException`

### getTermQuery

    protected SrndQuery getTermQuery(String term,
                                     boolean quoted)

### allowedSuffix

    protected boolean allowedSuffix(String suffixed)

### getPrefixQuery

    protected SrndQuery getPrefixQuery(String prefix,
                                       boolean quoted)

### allowedTruncation

    protected boolean allowedTruncation(String truncated)

### getTruncQuery

    protected SrndQuery getTruncQuery(String truncated)

### TopSrndQuery

    public final SrndQuery TopSrndQuery()
                                 throws ParseException

  Throws:
    `ParseException`

### FieldsQuery

    public final SrndQuery FieldsQuery()
                                throws ParseException

  Throws:
    `ParseException`

### OptionalFields

    public final ArrayList OptionalFields()
                                   throws ParseException

  Throws:
    `ParseException`

### OrQuery

    public final SrndQuery OrQuery()
                            throws ParseException

  Throws:
    `ParseException`

### AndQuery

    public final SrndQuery AndQuery()
                             throws ParseException

  Throws:
    `ParseException`

### NotQuery

    public final SrndQuery NotQuery()
                             throws ParseException

  Throws:
    `ParseException`

### NQuery

    public final SrndQuery NQuery()
                           throws ParseException

  Throws:
    `ParseException`

### WQuery

    public final SrndQuery WQuery()
                           throws ParseException

  Throws:
    `ParseException`

### PrimaryQuery

    public final SrndQuery PrimaryQuery()
                                 throws ParseException

  Throws:
    `ParseException`

### PrefixOperatorQuery

    public final SrndQuery PrefixOperatorQuery()
                                        throws ParseException

  Throws:
    `ParseException`

### FieldsQueryList

    public final List FieldsQueryList()
                               throws ParseException

  Throws:
    `ParseException`

### SimpleTerm

    public final SrndQuery SimpleTerm()
                               throws ParseException

  Throws:
    `ParseException`

### OptionalWeights

    public final void OptionalWeights(SrndQuery q)
                               throws ParseException

  Throws:
    `ParseException`

### ReInit

    public void ReInit(CharStream 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.