Class FunctionCallImpl
java.lang.Object
org.exolab.adaptx.xpath.expressions.PrimaryExpr
org.exolab.adaptx.xpath.expressions.FunctionCall
org.exolab.adaptx.xpath.functions.FunctionCallImpl
- All Implemented Interfaces:
Parameters
,XPathExpression
- Direct Known 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
An abstract class representing an XPath function call
- Version:
- $Revision: 3878 $
- Author:
- Keith Visco
-
Field Summary
FieldsFields 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, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addParameter
(XPathExpression expr) Adds the specified Expr to the listReturns the name of this function callfinal XPathExpression
getParameter
(int index) Returns the Expr at the specified position in this list.final int
Returns the number of expressions in the ListtoString()
Returns the String representation of this FunctionCallMethods inherited from class org.exolab.adaptx.xpath.expressions.PrimaryExpr
getExprType, getType
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.exolab.adaptx.xpath.XPathExpression
evaluate
-
Field Details
-
INVALID_NUMBER_PARAMS
- See Also:
-
INVALID_RESULT
- See Also:
-
-
Constructor Details
-
FunctionCallImpl
-
-
Method Details
-
getFunctionName
Returns the name of this function call- Specified by:
getFunctionName
in classFunctionCall
- Returns:
- the name of this function call
-
toString
Returns the String representation of this FunctionCall- Specified by:
toString
in interfaceXPathExpression
- Overrides:
toString
in classObject
- Returns:
- the String representation of this FunctionCall
-
addParameter
Adds the specified Expr to the list- Parameters:
expr
- the Expr to add to the list- Throws:
XPathException
-
getParameter
Returns the Expr at the specified position in this list.- Specified by:
getParameter
in interfaceParameters
- Specified by:
getParameter
in classFunctionCall
- Parameters:
index
- the position of the Expr to return- Throws:
IndexOutOfBoundsException
-
getParameterCount
public final int getParameterCount()Returns the number of expressions in the List- Specified by:
getParameterCount
in interfaceParameters
- Specified by:
getParameterCount
in classFunctionCall
- Returns:
- the number of expressions in the List
-