org.exolab.adaptx.xpath.functions
Class FunctionCallImpl
- XPathExpression
public abstract class FunctionCallImpl
An abstract class representing an XPath function call
BOOLEAN , ERROR , FILTER_EXPR , LOCATION_PATH , NODE_TEST , NUMBER , PATH_EXPR , PRIMARY , STEP , STRING , UNION_EXPR |
INVALID_NUMBER_PARAMS
public static final String INVALID_NUMBER_PARAMS
INVALID_RESULT
public static final String INVALID_RESULT
FunctionCallImpl
public FunctionCallImpl(String name)
addParameter
public final void addParameter(XPathExpression expr)
throws XPathException
Adds the specified Expr to the list
expr
- the Expr to add to the list
getFunctionName
public String getFunctionName()
Returns the name of this function call
- getFunctionName in interface FunctionCall
- the name of this function call
getParameter
public final XPathExpression getParameter(int index)
throws IndexOutOfBoundsException
Returns the Expr at the specified position in this list.
- getParameter in interface FunctionCall
index
- the position of the Expr to return
getParameterCount
public final int getParameterCount()
Returns the number of expressions in the List
- getParameterCount in interface FunctionCall
- the number of expressions in the List
toString
public String toString()
Returns the String representation of this FunctionCall
- toString in interface XPathExpression
- the String representation of this FunctionCall