Package com.saxonica.functions.qt4
Class ElementToMapPlan
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
com.saxonica.functions.qt4.ElementToMapPlan
- All Implemented Interfaces:
Callable,IFunctionWithRetainedParameterNames,FunctionItem,GroundedValue,Item,Sequence
Implementation of the fn:element-to-map-plan function proposed for 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] arguments) Evaluate the function callstatic intgetElementProperties(NodeInfo element, int properties) Get the properties of an element node.static StringgetInferredLayout(int properties) Methods inherited from class net.sf.saxon.functions.SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getElaborator, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getNetCost, getOperandRoles, getParameterNames, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniqueIdentifier, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunction40, makeFunctionCall, makeOptimizedFunctionCall, makeTrueFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEqual40, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
getGenreMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLabel, getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Field Details
-
ELEMENT_LAYOUT
-
ATTRIBUTE_LAYOUT
-
RETURN_TYPE
-
-
Constructor Details
-
ElementToMapPlan
public ElementToMapPlan()
-
-
Method Details
-
call
Evaluate the function call- Parameters:
context- the dynamic evaluation contextarguments- the values of the arguments, supplied as Sequences- Returns:
- the result of the evaluation, in the form of a Sequence
- Throws:
XPathException- if a dynamic error occurs during the evaluation of the expression
-
getElementProperties
Get the properties of an element node.- Parameters:
element- The element node.properties- Zero if evaluating for this element on its own. Otherwise, when looking for common properties of all elements sharing the same name, the properties already gathered for other elements having the same name.- Returns:
- the properties of this element, or, the properties shared by this element and others having the same element name. The returned value consists of a set of flags in the top 10 bits indicating for example whether the element has attributes, child element nodes, whitespace and/or non-whitespace text nodes; and in the bottom 20 bits, where all the children of an element have the same name, the fingerprint of the child element name.
-
getInferredLayout
-