org.sqlproc.engine.impl
Class SqlMetaLogOperator

java.lang.Object
  extended by org.sqlproc.engine.impl.SqlMetaLogOperator
All Implemented Interfaces:
SqlMetaLogOperand

 class SqlMetaLogOperator
extends java.lang.Object
implements SqlMetaLogOperand

A META SQL sub-element. It represents a logical operator in SqlMetaLogExpr.

Author:
Vladimir Hudec

Nested Class Summary
(package private) static class SqlMetaLogOperator.Type
          The enumeration of the logical operator types.
 
Field Summary
private  SqlMetaLogOperator.Type type
          The type of the logical operator.
 
Constructor Summary
SqlMetaLogOperator(SqlMetaLogOperator.Type type)
          Creates a new instance.
 
Method Summary
(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private SqlMetaLogOperator.Type type
The type of the logical operator. It work as a operator between two sub-elements in SqlMetaLogExpr.

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 interface SqlMetaLogOperand
Parameters:
ctx - the context for a dynamic ANSI SQL Query generation
Returns:
a logical value


Copyright © 2011. All Rights Reserved.