Package org.jaxen.expr
Class DefaultFunctionCallExpr
java.lang.Object
org.jaxen.expr.DefaultExpr
org.jaxen.expr.DefaultFunctionCallExpr
- All Implemented Interfaces:
Serializable
,Expr
,FunctionCallExpr
Deprecated.
this class will become non-public in the future;
use the interface instead
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(Expr parameter) Deprecated.Add the next argument to the function.Deprecated.Evaluate the expression in the given context, and return the result.evaluateParams
(Context context) Deprecated.Deprecated.Returns the local name of the function.Deprecated.Returns the the ordered list of function arguments.Deprecated.Returns the namespace prefix of the function.getText()
Deprecated.Returns a String containing the XPath expression.simplify()
Deprecated.Simplifies the XPath expression.toString()
Deprecated.Methods inherited from class org.jaxen.expr.DefaultExpr
convertToIterator, convertToList
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
prefix
Deprecated. -
functionName
Deprecated. -
parameters
Deprecated.
-
-
Constructor Details
-
DefaultFunctionCallExpr
Deprecated.
-
-
Method Details
-
addParameter
Deprecated.Description copied from interface:FunctionCallExpr
Add the next argument to the function.- Specified by:
addParameter
in interfaceFunctionCallExpr
- Parameters:
parameter
- a function argument
-
getParameters
Deprecated.Description copied from interface:FunctionCallExpr
Returns the the ordered list of function arguments. Each member of the list is anExpr
object.- Specified by:
getParameters
in interfaceFunctionCallExpr
- Returns:
- the ordered list of function arguments
-
getPrefix
Deprecated.Description copied from interface:FunctionCallExpr
Returns the namespace prefix of the function. This is the empty string for XPath's built-in functions.- Specified by:
getPrefix
in interfaceFunctionCallExpr
- Returns:
- the namespace prefix of the function
-
getFunctionName
Deprecated.Description copied from interface:FunctionCallExpr
Returns the local name of the function.- Specified by:
getFunctionName
in interfaceFunctionCallExpr
- Returns:
- the local name of the function
-
getText
Deprecated.Description copied from interface:Expr
Returns a String containing the XPath expression. -
simplify
Deprecated.Description copied from interface:Expr
Simplifies the XPath expression. For example, the expression//para[1 = 1]
could be simplified to//para
. In practice, this is usually a noop. Jaxen does not currently perform any simplification.- Specified by:
simplify
in interfaceExpr
- Overrides:
simplify
in classDefaultExpr
- Returns:
- the simplified expression
-
toString
Deprecated. -
evaluate
Deprecated.Description copied from interface:Expr
Evaluate the expression in the given context, and return the result. The result will be ajava.lang.Double
for expressions that return a number, ajava.lang.String
for expressions that return a string, ajava.lang.Boolean
for expressions that return a boolean, and ajava.util.List
for expressions that return a node-set. In the latter case, the elements of the list are the actual objects from the source document model. Copies are not made.- Specified by:
evaluate
in interfaceExpr
- Parameters:
context
- the context in which the expression is evaluated- Returns:
- an object representing the result of the evaluation
- Throws:
JaxenException
-
evaluateParams
Deprecated.- Throws:
JaxenException
-