\Zend_Search_Lucene_Search_BooleanExpressionRecognizer
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Search_BooleanExpressionRecognizer
extends Zend_Search_Lucene_FSM
{
- // constants
- const ST_START = 0;
- const ST_LITERAL = 1;
- const ST_NOT_OPERATOR = 2;
- const ST_AND_OPERATOR = 3;
- const ST_OR_OPERATOR = 4;
- const IN_LITERAL = 0;
- const IN_NOT_OPERATOR = 1;
- const IN_AND_OPERATOR = 2;
- const IN_OR_OPERATOR = 3;
- // members
- private boolean $_negativeLiteral = false;
- private $_literal;
- private array $_conjunctions = ;
- private array $_currentConjunction = ;
- // methods
- public void __construct()
- public void processOperator()
- public void processLiteral()
- public array finishExpression()
- public void emptyOperatorAction()
- public void emptyNotOperatorAction()
- public void notOperatorAction()
- public void orOperatorAction()
- public void literalAction()
- // Inherited methods from Zend_Search_Lucene_FSM
- public void __construct()
- public void addStates()
- public void addState()
- public void setState()
- public integer|string getState()
- public void addInputSymbols()
- public void addInputSymbol()
- public void addRules()
- public void addRule()
- public void addEntryAction()
- public void addExitAction()
- public void addInputAction()
- public void addTransitionAction()
- public void process()
- public void reset()
Hierarchy
Extends
Constants
Name | Value |
---|---|
ST_START | 0 |
ST_LITERAL | 1 |
ST_NOT_OPERATOR | 2 |
ST_AND_OPERATOR | 3 |
ST_OR_OPERATOR | 4 |
IN_LITERAL | 0 |
IN_NOT_OPERATOR | 1 |
IN_AND_OPERATOR | 2 |
IN_OR_OPERATOR | 3 |
Members
private
- $_conjunctions
—
array
Set of boolean query conjunctions - $_currentConjunction
—
array
Current conjuction - $_literal
—
mixed
Current literal - $_negativeLiteral
—
boolean
NOT operator signal
Methods
public
- __construct() — Object constructor
- emptyNotOperatorAction() — default (omitted) + NOT operator processing
- emptyOperatorAction() — default (omitted) operator processing
- finishExpression() — Finish an expression and return result
- literalAction() — Literal processing
- notOperatorAction() — NOT operator processing
- orOperatorAction() — OR operator processing Close current conjunction
- processLiteral() — Process expression literal.
- processOperator() — Process next operator.
Inherited from Zend_Search_Lucene_FSM
public
- addEntryAction() — Add state entry action.
- addExitAction() — Add state exit action.
- addInputAction() — Add input action (defined by {state, input} pair).
- addInputSymbol() — Add symbol to the input alphabet
- addInputSymbols() — Add symbols to the input alphabet
- addRule() — Add symbol to the input alphabet
- addRules() — Add transition rules
- addState() — Add state to the state machine
- addStates() — Add states to the state machine
- addTransitionAction() — Add transition action (defined by {state, input} pair).
- getState() — Get FSM state.
- process() — Process an input
- reset()
- setState() — Set FSM state.