public abstract class FunctionCallImpl extends FunctionCall implements Parameters
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INVALID_NUMBER_PARAMS |
static java.lang.String |
INVALID_RESULT |
EXPR, FUNCTION_CALL, LITERAL, NUMBER, VARIABLE_REFERENCE
BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR
Constructor and Description |
---|
FunctionCallImpl(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(XPathExpression expr)
Adds the specified Expr to the list
|
java.lang.String |
getFunctionName()
Returns the name of this function call
|
XPathExpression |
getParameter(int index)
Returns the Expr at the specified position in this list.
|
int |
getParameterCount()
Returns the number of expressions in the List
|
java.lang.String |
toString()
Returns the String representation of this FunctionCall
|
getExprType, getType
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluate
public static final java.lang.String INVALID_NUMBER_PARAMS
public static final java.lang.String INVALID_RESULT
public java.lang.String getFunctionName()
getFunctionName
in class FunctionCall
public java.lang.String toString()
toString
in interface XPathExpression
toString
in class java.lang.Object
public final void addParameter(XPathExpression expr) throws XPathException
expr
- the Expr to add to the listXPathException
public final XPathExpression getParameter(int index) throws java.lang.IndexOutOfBoundsException
getParameter
in interface Parameters
getParameter
in class FunctionCall
index
- the position of the Expr to returnjava.lang.IndexOutOfBoundsException
public final int getParameterCount()
getParameterCount
in interface Parameters
getParameterCount
in class FunctionCall