public class NotOperator extends AbstractOperator implements LogicalOperator
Operator.TYPE
MAX_OP_PRECEDENCE
Constructor and Description |
---|
NotOperator(int ctxPrecedence)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBasePrecedence()
Return the base precedence for this operator.
|
String |
getName()
Get the name of the operator.
|
Operator.TYPE |
getType()
Get the operator type.
|
Predicate |
toPredicate(Predicate left,
Predicate right)
Create a predicate for this logical operator.
|
String |
toString() |
getPrecedence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPrecedence
public NotOperator(int ctxPrecedence)
ctxPrecedence
- the precedence value of the current contextpublic Operator.TYPE getType()
Operator
public String getName()
AbstractOperator
getName
in class AbstractOperator
public int getBasePrecedence()
AbstractOperator
getBasePrecedence
in class AbstractOperator
public Predicate toPredicate(Predicate left, Predicate right)
LogicalOperator
toPredicate
in interface LogicalOperator
left
- left operandright
- right operandpublic String toString()
toString
in class AbstractOperator
Copyright © 2022 Apache Software Foundation. All rights reserved.