Package org.sqlproc.engine.impl
Class SqlMetaLogOperator
- java.lang.Object
-
- org.sqlproc.engine.impl.SqlMetaLogOperator
-
- All Implemented Interfaces:
SqlMetaLogOperand
class SqlMetaLogOperator extends Object implements SqlMetaLogOperand
A META SQL sub-element. It represents a logical operator inSqlMetaLogExpr
.- Author:
- Vladimir Hudec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SqlMetaLogOperator.Type
The enumeration of the logical operator types.
-
Field Summary
Fields Modifier and Type Field Description private SqlMetaLogOperator.Type
type
The type of the logical operator.
-
Constructor Summary
Constructors Constructor Description SqlMetaLogOperator(SqlMetaLogOperator.Type type)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) SqlMetaLogOperator.Type
getType()
Returns the type of the logical operator.boolean
processExpression(SqlProcessContext ctx)
The main contract to evaluate a logical value of META SQL sub-elements.
-
-
-
Field Detail
-
type
private SqlMetaLogOperator.Type type
The type of the logical operator. It work as a operator between two sub-elements inSqlMetaLogExpr
.
-
-
Constructor Detail
-
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 Detail
-
getType
SqlMetaLogOperator.Type getType()
Returns the type of the logical operator.- Returns:
- the type of the logical operator
-
processExpression
public boolean processExpression(SqlProcessContext ctx)
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
-
-