|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.expr.Expression com.icl.saxon.expr.Function com.icl.saxon.expr.StyleSheetFunctionCall
This class represents a call to a function defined in the stylesheet
Field Summary |
Fields inherited from class com.icl.saxon.expr.Function |
argument |
Fields inherited from class com.icl.saxon.expr.Expression |
staticContext |
Constructor Summary | |
StyleSheetFunctionCall()
|
Method Summary | |
Value |
evaluate(Context c)
Evaluate the function |
int |
getDataType()
Determine the data type of the expression, if possible |
int |
getDependencies()
Determine which aspects of the context the expression depends on. |
java.lang.String |
getName()
Get the name of the function. |
Expression |
reduce(int dependencies,
Context context)
Remove dependencies. |
void |
setFunction(SAXONFunction f)
Create the reference to the saxon:function element |
Expression |
simplify()
Simplify the function call |
Methods inherited from class com.icl.saxon.expr.Function |
addArgument, checkArgumentCount, display, getNumberOfArguments |
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StyleSheetFunctionCall()
Method Detail |
public void setFunction(SAXONFunction f)
public java.lang.String getName()
getName
in class Function
public int getDataType()
getDataType
in class Expression
public Expression simplify() throws XPathException
simplify
in class Expression
XPathException
public int getDependencies()
getDependencies
in class Expression
public Expression reduce(int dependencies, Context context) throws XPathException
reduce
in class Expression
dependencies
- The dependencies to be removed, e.g. Context.VARIABLEScontext
- The context to be used for the partial evaluation
XPathException
public Value evaluate(Context c) throws XPathException
evaluate
in class Expression
c
- The context in which the expression is to be evaluated
XPathException
- if the function cannot be evaluated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |