| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.IntegratedFunctionCall
public class IntegratedFunctionCall
Expression representing a call to a user-written extension
 function implemented as a subtype of ExtensionFunctionCall
| Field Summary | 
|---|
| Fields inherited from class net.sf.saxon.expr.FunctionCall | 
|---|
| argument | 
| Fields inherited from class net.sf.saxon.expr.Expression | 
|---|
| EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD | 
| Constructor Summary | |
|---|---|
| IntegratedFunctionCall(ExtensionFunctionCall function) | |
| Method Summary | |
|---|---|
|  void | checkArguments(ExpressionVisitor visitor)Method called during static type checking | 
| protected  int | computeCardinality()Compute the static cardinality of this expression | 
| protected  int | computeSpecialProperties()Compute the special properties of this expression. | 
|  Expression | copy()Copy an expression. | 
|  boolean | effectiveBooleanValue(XPathContext context)Get the effective boolean value of the expression. | 
|  ExtensionFunctionCall | getFunction()Get the underlying IntegratedFunction | 
|  int | getIntrinsicDependencies()Determine the intrinsic dependencies of an expression, that is, those which are not derived from the dependencies of its subexpressions. | 
|  ItemType | getItemType(TypeHierarchy th)Determine the data type of the expression, if possible. | 
|  SequenceIterator | iterate(XPathContext context)Return an Iterator to iterate over the values of a sequence. | 
|  Expression | preEvaluate(ExpressionVisitor visitor)Pre-evaluate a function at compile time. | 
|  void | setContainer(Container container)Mark an expression as being in a given Container. | 
|  Expression | typeCheck(ExpressionVisitor visitor,
          ItemType contextItemType)Type-check the expression. | 
| Methods inherited from class net.sf.saxon.expr.FunctionCall | 
|---|
| addExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public IntegratedFunctionCall(ExtensionFunctionCall function)
| Method Detail | 
|---|
public ExtensionFunctionCall getFunction()
public void setContainer(Container container)
This affects the expression and all its subexpressions. Any subexpressions that are not in the same container are marked with the new container, and this proceeds recursively. However, any subexpression that is already in the correct container is not modified.
setContainer in class Expressioncontainer - The container of this expression.
public void checkArguments(ExpressionVisitor visitor)
                    throws XPathException
checkArguments in class FunctionCallvisitor - the expression visitor
XPathException
public Expression typeCheck(ExpressionVisitor visitor,
                            ItemType contextItemType)
                     throws XPathException
typeCheck in class FunctionCallvisitor - an expression visitorcontextItemType - the static type of "." at the point where this expression is invoked.
 The parameter is set to null if it is known statically that the context item will be undefined.
 If the type of the context item is not known statically, the argument is set to
 Type.ITEM_TYPE
XPathException - if an error is discovered during this phase
     (typically a type error)
public Expression preEvaluate(ExpressionVisitor visitor)
                       throws XPathException
preEvaluate in class FunctionCallvisitor - an expression visitor
XPathExceptionpublic ItemType getItemType(TypeHierarchy th)
This method should always return a result, though it may be the best approximation that is available at the time.
getItemType in class Expressionth - the type hierarchy cache
protected int computeCardinality()
computeCardinality in class ExpressionStaticProperty.ALLOWS_ZERO_OR_ONE,
         StaticProperty.EXACTLY_ONE, StaticProperty.ALLOWS_ONE_OR_MORE,
         StaticProperty.ALLOWS_ZERO_OR_MOREpublic int getIntrinsicDependencies()
getIntrinsicDependencies in class Expressionprotected int computeSpecialProperties()
StaticProperty. The "special" properties are properties
 other than cardinality and dependencies, and most of them relate to properties of node sequences, for
 example whether the nodes are in document order.
computeSpecialProperties in class Expressionpublic Expression copy()
copy in class Expression
public SequenceIterator iterate(XPathContext context)
                         throws XPathException
iterate in interface SequenceIterableiterate in class Expressioncontext - supplies the context for evaluation
XPathException - if any dynamic error occurs evaluating the
          expression
public boolean effectiveBooleanValue(XPathContext context)
                              throws XPathException
effectiveBooleanValue in class Expressioncontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
          expression| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||