2.10.0: 2009-02-24

net.sf.basedb.util.jep
Interface JepRestrictionFunction

All Superinterfaces:
JepFunction, org.nfunk.jep.function.PostfixMathCommandI
All Known Implementing Classes:
InReporterListFunction, NotInReporterListFunction

public interface JepRestrictionFunction
extends JepFunction

This interface should be implemented by JEP functions that can also be converted into a Restriction that can be used in queries.

Version:
2.0
Author:
Nicklas
See Also:
Jep.formulaToRestriction(String, JepFunction[])
Last modified
$Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $

Method Summary
 Restriction toRestriction(Node node)
          Convert this function to a Restriction that can be used in a query.
 
Methods inherited from interface net.sf.basedb.util.jep.JepFunction
getFunctionName
 
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI
checkNumberOfParameters, getNumberOfParameters, run, setCurNumberOfParameters
 

Method Detail

toRestriction

Restriction toRestriction(Node node)
Convert this function to a Restriction that can be used in a query. The implementation must check that the node contains the correct number of children (ie. arguments to the function) and convert the arguments to whatever is suitable for the restriction. Example from the xx function
TODO

Parameters:
node - The node representing this function
Returns:
A Restriction object

2.10.0: 2009-02-24