C# Class Lucene.Net.QueryParsers.Flexible.Standard.Parser.StandardSyntaxParser

Parser for the standard Lucene syntax
Inheritance: ISyntaxParser
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
jj_nt Token
token Token
token_source StandardSyntaxParserTokenManager

Public Methods

Method Description
Clause ( string field ) : IQueryNode
ConjQuery ( string field ) : IQueryNode
Conjunction ( ) : int
Disable_tracing ( ) : void

Disable tracing.

DisjQuery ( string field ) : IQueryNode
Enable_tracing ( ) : void

Enable tracing.

GenerateParseException ( ) : ParseException

Generate ParseException.

GetNextToken ( ) : Token

Get the next Token.

GetToken ( int index ) : Token

Get the specific Token.

ModClause ( string field ) : IQueryNode
Modifiers ( ) : Modifier
Parse ( string query, string field ) : IQueryNode

Parses a query string, returning a IQueryNode.

Query ( string field ) : IQueryNode
ReInit ( ICharStream stream ) : void

Reinitialize.

ReInit ( StandardSyntaxParserTokenManager tm ) : void

Reinitialize.

StandardSyntaxParser ( ) : Lucene.Net.QueryParsers.Flexible.Core
StandardSyntaxParser ( ICharStream stream ) : Lucene.Net.QueryParsers.Flexible.Core

Constructor with user supplied ICharStream.

StandardSyntaxParser ( StandardSyntaxParserTokenManager tm ) : Lucene.Net.QueryParsers.Flexible.Core

Constructor with generated Token Manager.

Term ( string field ) : IQueryNode
TopLevelQuery ( string field ) : IQueryNode

Private Methods

Method Description
Jj_2_1 ( int xla ) : bool
Jj_2_2 ( int xla ) : bool
Jj_3R_10 ( ) : bool
Jj_3R_11 ( ) : bool
Jj_3R_12 ( ) : bool
Jj_3R_4 ( ) : bool
Jj_3R_5 ( ) : bool
Jj_3R_6 ( ) : bool
Jj_3R_7 ( ) : bool
Jj_3R_8 ( ) : bool
Jj_3R_9 ( ) : bool
Jj_3_1 ( ) : bool
Jj_3_2 ( ) : bool
Jj_add_error_token ( int kind, int pos ) : void
Jj_consume_token ( int kind ) : Token
Jj_la1_init_0 ( ) : void
Jj_la1_init_1 ( ) : void
Jj_ntk ( ) : int
Jj_rescan_token ( ) : void
Jj_save ( int index, int xla ) : void
Jj_scan_token ( int kind ) : bool

Method Details

Clause() public method

public Clause ( string field ) : IQueryNode
field string
return IQueryNode

ConjQuery() public method

public ConjQuery ( string field ) : IQueryNode
field string
return IQueryNode

Conjunction() public method

public Conjunction ( ) : int
return int

Disable_tracing() public method

Disable tracing.
public Disable_tracing ( ) : void
return void

DisjQuery() public method

public DisjQuery ( string field ) : IQueryNode
field string
return IQueryNode

Enable_tracing() public method

Enable tracing.
public Enable_tracing ( ) : void
return void

GenerateParseException() public method

Generate ParseException.
public GenerateParseException ( ) : ParseException
return ParseException

GetNextToken() public method

Get the next Token.
public GetNextToken ( ) : Token
return Token

GetToken() public method

Get the specific Token.
public GetToken ( int index ) : Token
index int
return Token

ModClause() public method

public ModClause ( string field ) : IQueryNode
field string
return IQueryNode

Modifiers() public method

public Modifiers ( ) : Modifier
return Modifier

Parse() public method

Parses a query string, returning a IQueryNode.
if the parsing fails
public Parse ( string query, string field ) : IQueryNode
query string the query string to be parsed.
field string
return IQueryNode

Query() public method

public Query ( string field ) : IQueryNode
field string
return IQueryNode

ReInit() public method

Reinitialize.
public ReInit ( ICharStream stream ) : void
stream ICharStream
return void

ReInit() public method

Reinitialize.
public ReInit ( StandardSyntaxParserTokenManager tm ) : void
tm StandardSyntaxParserTokenManager
return void

StandardSyntaxParser() public method

public StandardSyntaxParser ( ) : Lucene.Net.QueryParsers.Flexible.Core
return Lucene.Net.QueryParsers.Flexible.Core

StandardSyntaxParser() public method

Constructor with user supplied ICharStream.
public StandardSyntaxParser ( ICharStream stream ) : Lucene.Net.QueryParsers.Flexible.Core
stream ICharStream
return Lucene.Net.QueryParsers.Flexible.Core

StandardSyntaxParser() public method

Constructor with generated Token Manager.
public StandardSyntaxParser ( StandardSyntaxParserTokenManager tm ) : Lucene.Net.QueryParsers.Flexible.Core
tm StandardSyntaxParserTokenManager
return Lucene.Net.QueryParsers.Flexible.Core

Term() public method

public Term ( string field ) : IQueryNode
field string
return IQueryNode

TopLevelQuery() public method

public TopLevelQuery ( string field ) : IQueryNode
field string
return IQueryNode

Property Details

jj_nt public_oe property

Next token.
public Token,Lucene.Net.QueryParsers.Flexible.Standard.Parser jj_nt
return Token

token public_oe property

Current token.
public Token,Lucene.Net.QueryParsers.Flexible.Standard.Parser token
return Token

token_source public_oe property

Generated Token Manager.
public StandardSyntaxParserTokenManager,Lucene.Net.QueryParsers.Flexible.Standard.Parser token_source
return StandardSyntaxParserTokenManager