org.terrier.querying.parser
Class TerrierQueryParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by org.terrier.querying.parser.TerrierQueryParser
All Implemented Interfaces:
TerrierQueryParserTokenTypes

public class TerrierQueryParser
extends antlr.LLkParser
implements TerrierQueryParserTokenTypes


Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_10
           
static antlr.collections.impl.BitSet _tokenSet_11
           
static antlr.collections.impl.BitSet _tokenSet_12
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
static antlr.collections.impl.BitSet _tokenSet_9
           
protected static boolean DEBUG
           
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface org.terrier.querying.parser.TerrierQueryParserTokenTypes
ALPHANUMERIC, ALPHANUMERIC_CHAR, CLOSE_DISJUNCTIVE, CLOSE_PAREN, CLOSE_SEGMENT, COLON, DIT, EOF, HAT, IGNORED, INT, NOT_REQUIRED, NULL_TREE_LOOKAHEAD, NUM_FLOAT, NUM_INT, OPEN_DISJUNCTIVE, OPEN_PAREN, OPEN_SEGMENT, PERIOD, PROXIMITY, QUOTE, REQUIRED
 
Constructor Summary
  TerrierQueryParser(antlr.ParserSharedInputState state)
           
  TerrierQueryParser(antlr.TokenBuffer tokenBuf)
           
protected TerrierQueryParser(antlr.TokenBuffer tokenBuf, int k)
           
  TerrierQueryParser(antlr.TokenStream lexer)
           
protected TerrierQueryParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 Query disjunctiveQuery()
           
 Query explicitMultiTermQuery()
           
 Query fieldQuery()
           
 Query impliedMultiTermQuery()
           
 Query phraseQuery()
           
 Query query()
           
 void recover(antlr.RecognitionException ex, antlr.collections.impl.BitSet tokenSet)
           
 Query requirementQuery()
           
 Query segmentQuery()
           
 void setSelector(antlr.TokenStreamSelector s)
           
 Query singleTermQuery()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

DEBUG

protected static final boolean DEBUG

_tokenNames

public static final String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4

_tokenSet_5

public static final antlr.collections.impl.BitSet _tokenSet_5

_tokenSet_6

public static final antlr.collections.impl.BitSet _tokenSet_6

_tokenSet_7

public static final antlr.collections.impl.BitSet _tokenSet_7

_tokenSet_8

public static final antlr.collections.impl.BitSet _tokenSet_8

_tokenSet_9

public static final antlr.collections.impl.BitSet _tokenSet_9

_tokenSet_10

public static final antlr.collections.impl.BitSet _tokenSet_10

_tokenSet_11

public static final antlr.collections.impl.BitSet _tokenSet_11

_tokenSet_12

public static final antlr.collections.impl.BitSet _tokenSet_12
Constructor Detail

TerrierQueryParser

protected TerrierQueryParser(antlr.TokenBuffer tokenBuf,
                             int k)

TerrierQueryParser

public TerrierQueryParser(antlr.TokenBuffer tokenBuf)

TerrierQueryParser

protected TerrierQueryParser(antlr.TokenStream lexer,
                             int k)

TerrierQueryParser

public TerrierQueryParser(antlr.TokenStream lexer)

TerrierQueryParser

public TerrierQueryParser(antlr.ParserSharedInputState state)
Method Detail

setSelector

public void setSelector(antlr.TokenStreamSelector s)

recover

public void recover(antlr.RecognitionException ex,
                    antlr.collections.impl.BitSet tokenSet)
             throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

query

public final Query query()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

impliedMultiTermQuery

public final Query impliedMultiTermQuery()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

explicitMultiTermQuery

public final Query explicitMultiTermQuery()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

segmentQuery

public final Query segmentQuery()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

phraseQuery

public final Query phraseQuery()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

disjunctiveQuery

public final Query disjunctiveQuery()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

fieldQuery

public final Query fieldQuery()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

requirementQuery

public final Query requirementQuery()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

singleTermQuery

public final Query singleTermQuery()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException


Terrier 3.6. Copyright © 2004-2011 University of Glasgow