org.exolab.adaptx.xpath.functions

Class FunctionCallImpl

Implemented Interfaces:
XPathExpression
Known Direct Subclasses:
BooleanFunctionCall, Concat, Contains, CountFunctionCall, ErrorFunctionCall, ExtensionFunctionCall, FalseFunctionCall, FormatNumber, IdFunctionCall, IdRefFunctionCall, LangFunctionCall, LastFunctionCall, Normalize, NotFunctionCall, NumberFunctionCall, PositionFunctionCall, StartsWith, StringFunctionCall, StringLength, Substring, SubstringAfter, SubstringBefore, SumFunctionCall, TextFunctionCall, Translate, TrueFunctionCall, XMLNamesFunctionCall

public abstract class FunctionCallImpl
extends FunctionCall

An abstract class representing an XPath function call
Version:
$Revision: 1.1 $
Author:
Keith Visco

Field Summary

static String
INVALID_NUMBER_PARAMS
static String
INVALID_RESULT

Fields inherited from class org.exolab.adaptx.xpath.expressions.PrimaryExpr

EXPR, FUNCTION_CALL, LITERAL, NUMBER, VARIABLE_REFERENCE

Fields inherited from interface org.exolab.adaptx.xpath.XPathExpression

BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, NUMBER, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR

Constructor Summary

FunctionCallImpl(String name)

Method Summary

void
addParameter(XPathExpression expr)
Adds the specified Expr to the list
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
String
toString()
Returns the String representation of this FunctionCall

Methods inherited from class org.exolab.adaptx.xpath.expressions.FunctionCall

getFunctionName, getParameter, getParameterCount

Methods inherited from class org.exolab.adaptx.xpath.expressions.PrimaryExpr

getExprType, getType

Field Details

INVALID_NUMBER_PARAMS

public static final String INVALID_NUMBER_PARAMS

INVALID_RESULT

public static final String INVALID_RESULT

Constructor Details

FunctionCallImpl

public FunctionCallImpl(String name)

Method Details

addParameter

public final void addParameter(XPathExpression expr)
            throws XPathException
Adds the specified Expr to the list
Parameters:
expr - the Expr to add to the list

getFunctionName

public String getFunctionName()
Returns the name of this function call
Overrides:
getFunctionName in interface FunctionCall
Returns:
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.
Overrides:
getParameter in interface FunctionCall
Parameters:
index - the position of the Expr to return

getParameterCount

public final int getParameterCount()
Returns the number of expressions in the List
Overrides:
getParameterCount in interface FunctionCall
Returns:
the number of expressions in the List

toString

public String toString()
Returns the String representation of this FunctionCall
Specified by:
toString in interface XPathExpression
Returns:
the String representation of this FunctionCall