Package com.exasol.sql.expression
Class Not
- java.lang.Object
-
- com.exasol.util.AbstractTree
-
- com.exasol.util.AbstractBottomUpTreeNode
-
- com.exasol.sql.expression.AbstractBooleanExpression
-
- com.exasol.sql.expression.Not
-
- All Implemented Interfaces:
BooleanExpression,ValueExpression,TreeNode
public class Not extends AbstractBooleanExpression
This class implements the logical unary NOT
-
-
Field Summary
-
Fields inherited from class com.exasol.util.AbstractTree
children, parent
-
-
Constructor Summary
Constructors Constructor Description Not(boolean value)Create a new instance of a unaryNotfrom a boolean literalNot(BooleanExpression expression)Create a new instance of a unaryNotfrom a boolean expressionNot(String value)Create a new instance of a unaryNotfrom a string literal
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptConcrete(BooleanExpressionVisitor visitor)Sub-classes must override this method so that the visitor knows the type of the visited class at compile time.voiddismissConcrete(BooleanExpressionVisitor visitor)Sub-classes must override this method so that the visitor knows the type of the visited class at compile time.-
Methods inherited from class com.exasol.sql.expression.AbstractBooleanExpression
accept, accept
-
Methods inherited from class com.exasol.util.AbstractBottomUpTreeNode
addChild, getRoot, setParent
-
Methods inherited from class com.exasol.util.AbstractTree
getChild, getChildren, getParent, isChild, isFirstSibling, isRoot, isSibling
-
-
-
-
Constructor Detail
-
Not
public Not(boolean value)
Create a new instance of a unaryNotfrom a boolean literal- Parameters:
value- boolean literal to be negated
-
Not
public Not(String value)
Create a new instance of a unaryNotfrom a string literal- Parameters:
value- string literal to be negated
-
Not
public Not(BooleanExpression expression)
Create a new instance of a unaryNotfrom a boolean expression- Parameters:
expression- boolean expression literal to be negated
-
-
Method Detail
-
acceptConcrete
public void acceptConcrete(BooleanExpressionVisitor visitor)
Description copied from class:AbstractBooleanExpressionSub-classes must override this method so that the visitor knows the type of the visited class at compile time.- Specified by:
acceptConcretein classAbstractBooleanExpression- Parameters:
visitor- visitor to accept
-
dismissConcrete
public void dismissConcrete(BooleanExpressionVisitor visitor)
Description copied from class:AbstractBooleanExpressionSub-classes must override this method so that the visitor knows the type of the visited class at compile time.- Specified by:
dismissConcretein classAbstractBooleanExpression- Parameters:
visitor- visitor to accept
-
-