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

Negated node NOTE: may not appear in any resulting query AST, NegatedNode are always removed and attached to a BooleanClause as MUST_NOT. More...

+ Inheritance diagram for CirrusSearch\Parser\AST\NegatedNode:
+ Collaboration diagram for CirrusSearch\Parser\AST\NegatedNode:

Public Member Functions

 __construct ( $startOffset, $endOffset, ParsedNode $child, $negationType)
 
 toArray ()
 
 getChild ()
 
 getNegationType ()
 
 accept (Visitor $visitor)
 
- Public Member Functions inherited from CirrusSearch\Parser\AST\ParsedNode
 __construct ( $startOffset, $endOffset)
 
 getStartOffset ()
 
 getEndOffset ()
 

Static Public Member Functions

static validNegationType ( $negationType)
 Check whether this negation type is valid.
 

Additional Inherited Members

- Protected Member Functions inherited from CirrusSearch\Parser\AST\ParsedNode
 baseParams ()
 

Detailed Description

Negated node NOTE: may not appear in any resulting query AST, NegatedNode are always removed and attached to a BooleanClause as MUST_NOT.

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Parser\AST\NegatedNode::__construct ( $startOffset,
$endOffset,
ParsedNode $child,
$negationType )
Parameters
int$startOffset
int$endOffset
ParsedNode$child
string$negationType

Member Function Documentation

◆ accept()

CirrusSearch\Parser\AST\NegatedNode::accept ( Visitor $visitor)
Parameters
Visitor$visitor

Implements CirrusSearch\Parser\AST\Visitor\Visitable.

◆ getChild()

CirrusSearch\Parser\AST\NegatedNode::getChild ( )
Returns
ParsedNode

◆ getNegationType()

CirrusSearch\Parser\AST\NegatedNode::getNegationType ( )
Returns
string type of negation used (NOT, ! or -)

◆ toArray()

CirrusSearch\Parser\AST\NegatedNode::toArray ( )
Returns
array

Reimplemented from CirrusSearch\Parser\AST\ParsedNode.

◆ validNegationType()

static CirrusSearch\Parser\AST\NegatedNode::validNegationType ( $negationType)
static

Check whether this negation type is valid.

Parameters
string$negationType
Returns
bool

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