CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Parser\AST\Visitor\LeafVisitor Class Reference

Visit leaves only. More...

+ Inheritance diagram for CirrusSearch\Parser\AST\Visitor\LeafVisitor:
+ Collaboration diagram for CirrusSearch\Parser\AST\Visitor\LeafVisitor:

Public Member Functions

 __construct ( $excludeOccurs=[])
 
 visitParsedBooleanNode (ParsedBooleanNode $node)
 
 visitNegatedNode (NegatedNode $node)
 
 visitNamespaceHeader (NamespaceHeaderNode $node)
 
 visitBooleanClause (BooleanClause $node)
 
 negated ()
 
 getCurrentBooleanClause ()
 
- Public Member Functions inherited from CirrusSearch\Parser\AST\Visitor\Visitor
 visitWordsQueryNode (WordsQueryNode $node)
 
 visitPhraseQueryNode (PhraseQueryNode $node)
 
 visitPhrasePrefixNode (PhrasePrefixNode $node)
 
 visitFuzzyNode (FuzzyNode $node)
 
 visitPrefixNode (PrefixNode $node)
 
 visitWildcardNode (WildcardNode $node)
 
 visitEmptyQueryNode (EmptyQueryNode $node)
 
 visitKeywordFeatureNode (KeywordFeatureNode $node)
 

Detailed Description

Visit leaves only.

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Parser\AST\Visitor\LeafVisitor::__construct ( $excludeOccurs = [])
Parameters
int[]$excludeOccurs

Member Function Documentation

◆ getCurrentBooleanClause()

CirrusSearch\Parser\AST\Visitor\LeafVisitor::getCurrentBooleanClause ( )
final
Returns
BooleanClause|null the boolean clause the visited node is in or null if top-level

◆ negated()

bool true when this branch is CirrusSearch\Parser\AST\Visitor\LeafVisitor::negated ( )
final
Returns
bool true if this node is in a negation

◆ visitBooleanClause()

CirrusSearch\Parser\AST\Visitor\LeafVisitor::visitBooleanClause ( BooleanClause $node)
final
Parameters
BooleanClause$node

Implements CirrusSearch\Parser\AST\Visitor\Visitor.

◆ visitNamespaceHeader()

CirrusSearch\Parser\AST\Visitor\LeafVisitor::visitNamespaceHeader ( NamespaceHeaderNode $node)
final
Parameters
NamespaceHeaderNode$node

@phan-suppress-next-line PhanImpossibleCondition I agree, this is impossible.

Implements CirrusSearch\Parser\AST\Visitor\Visitor.

◆ visitNegatedNode()

CirrusSearch\Parser\AST\Visitor\LeafVisitor::visitNegatedNode ( NegatedNode $node)
final
Parameters
NegatedNode$node

@phan-suppress-next-line PhanImpossibleCondition I agree, this is impossible.

Implements CirrusSearch\Parser\AST\Visitor\Visitor.

◆ visitParsedBooleanNode()

CirrusSearch\Parser\AST\Visitor\LeafVisitor::visitParsedBooleanNode ( ParsedBooleanNode $node)
final
Parameters
ParsedBooleanNode$node

Implements CirrusSearch\Parser\AST\Visitor\Visitor.


The documentation for this class was generated from the following file: