uk.ac.bbk.dcs.automed.qproc.functions.date
Class GetMonth

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.qproc.functions.BuiltInFunction
      extended by uk.ac.bbk.dcs.automed.qproc.functions.date.GetMonth

public class GetMonth
extends BuiltInFunction

Provides a mapping between number and word representation for the months. Possible integer inputs are 1..12 and 01..12. Possible string inputs are 'January'..'December' and 'Jan'..'Dec' (case-insensitive, include single quotes). String output is January..December. Integer output is 01..12.

Author:
Lucas Zamboulis

Field Summary
 
Fields inherited from class uk.ac.bbk.dcs.automed.qproc.functions.BuiltInFunction
arity, logger, typeList
 
Constructor Summary
GetMonth()
           
 
Method Summary
 Cell perform(Cell[] args, Evaluator e)
           
 
Methods inherited from class uk.ac.bbk.dcs.automed.qproc.functions.BuiltInFunction
finalize, getArity, getTypeList
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMonth

public GetMonth()
         throws ParseException
Throws:
ParseException
Method Detail

perform

public Cell perform(Cell[] args,
                    Evaluator e)
             throws TypeException,
                    QProcException
Specified by:
perform in class BuiltInFunction
Returns:
a Cell object that is the root of a graph that represents the result of applying the built-in function to the arguments args. Uses the Evaluator e to evaluate any sub-queries that need to be evaluated.
Throws:
TypeException
QProcException