org.eigenbase.rex
Class RexProgram.Checker

java.lang.Object
  extended by org.eigenbase.rex.RexVisitorImpl<Boolean>
      extended by org.eigenbase.rex.RexChecker
          extended by org.eigenbase.rex.RexProgram.Checker
All Implemented Interfaces:
RexVisitor<Boolean>
Enclosing class:
RexProgram

static class RexProgram.Checker
extends RexChecker

Visitor which walks over a program and checks validity.


Field Summary
private  List<RelDataType> internalExprTypeList
           
 
Fields inherited from class org.eigenbase.rex.RexChecker
fail, failCount, inputTypeList
 
Fields inherited from class org.eigenbase.rex.RexVisitorImpl
deep
 
Constructor Summary
RexProgram.Checker(boolean fail, RelDataType inputRowType, List<RelDataType> internalExprTypeList)
          Creates a Checker.
 
Method Summary
 Boolean visitLocalRef(RexLocalRef localRef)
           
 
Methods inherited from class org.eigenbase.rex.RexChecker
getFailureCount, isValid, visitCall, visitFieldAccess, visitInputRef
 
Methods inherited from class org.eigenbase.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCorrelVariable, visitDynamicParam, visitLiteral, visitOver, visitRangeRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internalExprTypeList

private final List<RelDataType> internalExprTypeList
Constructor Detail

RexProgram.Checker

public RexProgram.Checker(boolean fail,
                          RelDataType inputRowType,
                          List<RelDataType> internalExprTypeList)
Creates a Checker.

Parameters:
fail - Whether to fail
inputRowType - Types of the input fields
internalExprTypeList - Types of the internal expressions
Method Detail

visitLocalRef

public Boolean visitLocalRef(RexLocalRef localRef)
Specified by:
visitLocalRef in interface RexVisitor<Boolean>
Overrides:
visitLocalRef in class RexChecker