Package org.sqlproc.engine.impl
Class SqlMetaLogOperator
java.lang.Object
org.sqlproc.engine.impl.SqlMetaLogOperator
- All Implemented Interfaces:
SqlMetaLogOperand
A META SQL sub-element. It represents a logical operator in
SqlMetaLogExpr
.- Author:
- Vladimir Hudec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
The enumeration of the logical operator types. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SqlMetaLogOperator.Type
The type of the logical operator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) SqlMetaLogOperator.Type
getType()
Returns the type of the logical operator.boolean
The main contract to evaluate a logical value of META SQL sub-elements.
-
Field Details
-
type
The type of the logical operator. It work as a operator between two sub-elements inSqlMetaLogExpr
.
-
-
Constructor Details
-
SqlMetaLogOperator
SqlMetaLogOperator(SqlMetaLogOperator.Type type) Creates a new instance. It's used from inside ANTLR parser.- Parameters:
type
- the type of the logical operator
-
-
Method Details
-
getType
SqlMetaLogOperator.Type getType()Returns the type of the logical operator.- Returns:
- the type of the logical operator
-
processExpression
The main contract to evaluate a logical value of META SQL sub-elements.- Specified by:
processExpression
in interfaceSqlMetaLogOperand
- Parameters:
ctx
- the context for a dynamic ANSI SQL Query generation- Returns:
- a logical value
-