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 PrimaryExpr
EXPR, FUNCTION_CALL, LITERAL, NUMBER, VARIABLE_REFERENCEFields inherited from interface XPathExpression
BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddParameter(XPathExpression expr) Adds the specified Expr to the listReturns the name of this function callfinal XPathExpressiongetParameter(int index) Returns the Expr at the specified position in this list.final intReturns the number of expressions in the ListtoString()Returns the String representation of this FunctionCallMethods inherited from class PrimaryExpr
getExprType, getTypeMethods inherited from interface 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:
getFunctionNamein classFunctionCall- Returns:
- the name of this function call
-
toString
Returns the String representation of this FunctionCall- Specified by:
toStringin interfaceXPathExpression- Overrides:
toStringin 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:
getParameterin interfaceParameters- Specified by:
getParameterin 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:
getParameterCountin interfaceParameters- Specified by:
getParameterCountin classFunctionCall- Returns:
- the number of expressions in the List
-