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 classSqlMetaLogOperator.TypeThe enumeration of the logical operator types.
-
Field Summary
Fields Modifier and Type Field Description private SqlMetaLogOperator.TypetypeThe 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.TypegetType()Returns the type of the logical operator.booleanprocessExpression(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:
processExpressionin interfaceSqlMetaLogOperand- Parameters:
ctx- the context for a dynamic ANSI SQL Query generation- Returns:
- a logical value
-
-