public interface XPathFunction
Modifier and Type | Method and Description |
---|---|
boolean |
checkParameterCount(int numParam)
Given the number of parameters, can statically check if this function accepts this number of parameters
|
OXPathType |
evaluate(ArrayList<OXPathType> args,
PAATStateEvalSet state)
Evaluates the function (by PAAT with a list of arguments).
|
int |
getMaxParameters()
Returns the maximum number of parameters this function accepts
|
int |
getMinParameters()
Returns the minimum number of parameters this function accepts
|
String |
getName()
Returns the function name (no parentheses)
|
String getName()
int getMinParameters()
int getMaxParameters()
boolean checkParameterCount(int numParam)
numParam
- num of parameters to check in a function calltrue
if the number of parameters are legal; false
otherwiseOXPathType evaluate(ArrayList<OXPathType> args, PAATStateEvalSet state) throws OXPathException
checkParameterCount(int)
args
- the list of parameters, computed as a list of OXPathType
objectsstate
- the state of the evaluationOXPathException
- in case of function errorCopyright © 2020 OXPath Team. All rights reserved.