com.saxonica.extra
Class FirstClassFunction
java.lang.Object
  
net.sf.saxon.value.Value
      
net.sf.saxon.value.AtomicValue
          
net.sf.saxon.value.ObjectValue
              
com.saxonica.extra.FirstClassFunction
- All Implemented Interfaces: 
 - Serializable, Comparable, SequenceIterable, Item, ValueRepresentation
 
public class FirstClassFunction
- extends ObjectValue
 
A FirstClassFunction is a value that encapsulates a function; it can therefore be manipulated like
 any other value: for example it can be assigned to a variable and passed as a parameter to a function.
 A FirstClassFunction can be created using the extension function saxon:function(), and can be invoked
 using the extension function saxon:call().
- See Also:
 - Serialized Form
 
 
 
 
 
 
| Methods inherited from class net.sf.saxon.value.ObjectValue | 
convertPrimitive, convertToJava, copy, displayTypeName, effectiveBooleanValue, equals, getItemType, getObject, getPrimitiveType, getStringValue, hashCode, setValue | 
 
| Methods inherited from class net.sf.saxon.value.AtomicValue | 
checkPermittedContents, convert, convert, getCardinality, getComponent, getLength, getStringValueCS, getTypedValue, getTypeLabel, getXPathComparable, hasBuiltInType, isMultiValued, itemAt, iterate, process, setTypeLabel, toString | 
 
| Methods inherited from class net.sf.saxon.value.Value | 
asItem, asItem, asIterator, asValue, compareTo, convert, convertJavaObjectToXPath, fromItem, getCanonicalLexicalRepresentation, getIterator, getSchemaComparable, iterate, makeQNameValue, reduce, stringToNumber | 
 
 
FirstClassFunction
public FirstClassFunction(UserFunctionCall exp)
getArity
public int getArity()
 
bind
public static FirstClassFunction bind(int fingerprint,
                                      String uri,
                                      String local,
                                      int arity,
                                      StaticContext env)
                               throws XPathException
- Throws:
 XPathException
 
invoke
public ValueRepresentation invoke(ValueRepresentation[] args,
                                  XPathContext context)
                           throws XPathException
- Throws:
 XPathException
 
Copyright (C) Michael H. Kay. All rights reserved.