edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function
Class FunCall

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.FunCall
Direct Known Subclasses:
FunAVG, FunCOLUMN, FunCONCAT, FunCONTAINS, FunCOUNT, FunDATE, FunDef, FunDOCUMENT, FunEXISTS, FunGETID, FunGETTAG, FunINCREMENT, FunJOIN, FunLAST, FunLOWERCASE, FunMAX, FunMIN, FunMULTISTEPORDER, FunNAME, FunNUMFORMAT, FunPOSITION, FunSHALLOW, FunSINGLESTEPORDER, FunSPLIT, FunSTARTSWITH, FunStringTemplate, FunSUBST, FunSUM, FunTRIM, FunUPPERCASE

public abstract class FunCall
extends java.lang.Object

The FunCall class

Since:
1.0

Constructor Summary
FunCall()
           
 
Method Summary
 void eval(Function f)
          if later func implement eval, it will over load this function otherwise, func implement exec() method, it will over load exec function
protected abstract  java.lang.Object exec(java.util.Vector param)
          The subclass should overwrite this method.
 void iterator(Function f)
          Iterates through function parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunCall

public FunCall()
Method Detail

eval

public final void eval(Function f)
if later func implement eval, it will over load this function otherwise, func implement exec() method, it will over load exec function
Parameters:
f - edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.FunCall
Since:
1.0

exec

protected abstract java.lang.Object exec(java.util.Vector param)
                                  throws java.lang.Exception
The subclass should overwrite this method.
Parameters:
param - java.util.Vector
Returns:
the result of execution.
Throws:
java.lang.Exception -  
Since:
1.0

iterator

public void iterator(Function f)
Iterates through function parameter.
Parameters:
f - is the function.
Since:
1.0