|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.FunctionCall
Implements an XPath FunctionCall.
Function
Nested Class Summary | |
protected static interface |
FunctionCall.DoubleCaster
An interface for casting an XPath number value to a java Number type (especially a java primitive number type) |
protected static class |
FunctionCall.NumberCaster
An implementation class for casting an XPath number value to a java Number-derived object (especially a java primitive number type) |
Constructor Summary | |
FunctionCall(Function function)
Construct a function call with no arguments. |
|
FunctionCall(Function function,
ArgumentList argList)
Construct a function call with a list of arguments. |
Method Summary | |
void |
dump(PrintWriter writer,
int indent)
Print the expression in a readable form for debugging. |
ExpressionValue |
evaluate(Node contextNode,
ExpressionContext context)
Evaluate the expression with repect to the passed context |
protected void |
frameArguments(ExpressionValue[] args,
Node contextNode,
ExpressionContext context)
Build a list of arguments for invoking the function. |
Function |
getFunction()
Return the Function object that is the target of this FunctionCall |
Class |
getResultType()
Return the Class object describing the result type of the expression. |
boolean |
isConstant()
Return true if the expression is a constant value. |
void |
registerForReset(XPathResetRegistrar registrar)
Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache() |
protected void |
setupArgs()
Check the argument list for correct number and type. |
String |
toString()
Provide a readable description for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FunctionCall(Function function) throws XPathParserException
function
- function objectpublic FunctionCall(Function function, ArgumentList argList) throws XPathParserException
function
- function objectargList
- Array of expressions to be used as function argumentsMethod Detail |
public Function getFunction()
public String toString()
public ExpressionValue evaluate(Node contextNode, ExpressionContext context) throws XPathEvaluationException
evaluate
in interface Expression
contextNode
- context node for expression evaluationcontext
- expression context for expression evaluation
XPathEvaluationException
public boolean isConstant()
isConstant
in interface Expression
public Class getResultType()
getResultType
in interface Expression
public void registerForReset(XPathResetRegistrar registrar)
resetCache()
registerForReset
in interface Expression
public void dump(PrintWriter writer, int indent)
dump
in interface Expression
writer
- The output device.indent
- Number of tabs to indent the result.protected void frameArguments(ExpressionValue[] args, Node contextNode, ExpressionContext context) throws XPathEvaluationException
args
- The argument list (a list of expression results)contextNode
- The context node for expression evaluationcontext
- The expression evaluation context.
XPathEvaluationException
protected void setupArgs() throws XPathParserException
XPathParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |