org.eigenbase.rex
Class RexProgram.ConstantFinder

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

private class RexProgram.ConstantFinder
extends Object
implements RexVisitor<Boolean>

Walks over an expression and determines whether it is constant.


Constructor Summary
private RexProgram.ConstantFinder()
           
 
Method Summary
 Boolean visitCall(RexCall call)
           
 Boolean visitCorrelVariable(RexCorrelVariable correlVariable)
           
 Boolean visitDynamicParam(RexDynamicParam dynamicParam)
           
 Boolean visitFieldAccess(RexFieldAccess fieldAccess)
           
 Boolean visitInputRef(RexInputRef inputRef)
           
 Boolean visitLiteral(RexLiteral literal)
           
 Boolean visitLocalRef(RexLocalRef localRef)
           
 Boolean visitOver(RexOver over)
           
 Boolean visitRangeRef(RexRangeRef rangeRef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RexProgram.ConstantFinder

private RexProgram.ConstantFinder()
Method Detail

visitLiteral

public Boolean visitLiteral(RexLiteral literal)
Specified by:
visitLiteral in interface RexVisitor<Boolean>

visitInputRef

public Boolean visitInputRef(RexInputRef inputRef)
Specified by:
visitInputRef in interface RexVisitor<Boolean>

visitLocalRef

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

visitOver

public Boolean visitOver(RexOver over)
Specified by:
visitOver in interface RexVisitor<Boolean>

visitCorrelVariable

public Boolean visitCorrelVariable(RexCorrelVariable correlVariable)
Specified by:
visitCorrelVariable in interface RexVisitor<Boolean>

visitDynamicParam

public Boolean visitDynamicParam(RexDynamicParam dynamicParam)
Specified by:
visitDynamicParam in interface RexVisitor<Boolean>

visitCall

public Boolean visitCall(RexCall call)
Specified by:
visitCall in interface RexVisitor<Boolean>

visitRangeRef

public Boolean visitRangeRef(RexRangeRef rangeRef)
Specified by:
visitRangeRef in interface RexVisitor<Boolean>

visitFieldAccess

public Boolean visitFieldAccess(RexFieldAccess fieldAccess)
Specified by:
visitFieldAccess in interface RexVisitor<Boolean>