javax.xml.transform.Source
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, Container
, FingerprintedNode
, Item
, NodeInfo
, ValueRepresentation
, StylesheetProcedure
, InstructionInfo
, org.xml.sax.Locator
public class XSLFunction extends StyleElement implements StylesheetProcedure
Modifier and Type | Field | Description |
---|---|---|
(package private) java.util.List |
references |
nameCode, root
attributeList, namespaceList
index, NODE_LETTER, parent
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
sequence
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version
EMPTY_VALUE_ARRAY
Constructor | Description |
---|---|
XSLFunction() |
Modifier and Type | Method | Description |
---|---|---|
Expression |
compile(Executable exec) |
Compile the function definition to create an executable representation
|
void |
fixupReferences() |
Notify all references to this function of the data type.
|
UserFunction |
getCompiledFunction() |
Get the compiled function
|
int |
getConstructType() |
Get the type of construct.
|
int |
getFunctionFingerprint() |
Get the fingerprint of the name of this function.
|
int |
getNumberOfArguments() |
Get the number of arguments declared by this function (that is, its arity).
|
SequenceType |
getResultType() |
Get the type of value returned by this function
|
SlotManager |
getSlotManager() |
Get associated Procedure (for details of stack frame).
|
boolean |
isOverriding() |
Is override="yes"?.
|
protected boolean |
isPermittedChild(StyleElement child) |
Specify that xsl:param is a permitted child
|
boolean |
mayContainSequenceConstructor() |
Determine whether this type of element is allowed to contain a template-body.
|
void |
prepareAttributes() |
Set the attribute list for the element.
|
void |
registerReference(UserFunctionCall ref) |
Method called by UserFunctionCall to register the function call for
subsequent fixup.
|
void |
setParameterDefinitions(UserFunction fn) |
Set the definitions of the parameters in the compiled function, as an array.
|
void |
validate() |
Check that the stylesheet element is valid.
|
generateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemId
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations
getSystemId
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArray
allocateLocationId, allocateSlots, backwardsCompatibleModeIsEnabled, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, checkWithinTemplate, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getCommonChildItemType, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectFingerprint, getObjectNameCode, getPrecedence, getPreparedStylesheet, getPrincipalStylesheet, getProperties, getProperty, getReturnedItemType, getSchemaType, getStaticContext, getStylesheetFunction, getSystemId, getTargetNamePool, getTypeAnnotation, getVersion, getWithParamInstructions, isExcludedNamespace, isExplaining, isExtensionNamespace, isInstruction, issueWarning, issueWarning, isTopLevel, makeAttributeValueTemplate, makeExpression, makeNameCode, makeNamespaceContext, makePattern, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainFallback, postValidate, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processVersionAttribute, replaceSubExpression, reportAbsence, setLineNumber, setObjectNameCode, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree
public void registerReference(UserFunctionCall ref)
ref
- the UserFunctionCall to be registeredpublic void prepareAttributes() throws XPathException
StyleElement
prepareAttributes
in class StyleElement
XPathException
public boolean mayContainSequenceConstructor()
mayContainSequenceConstructor
in class StyleElement
protected boolean isPermittedChild(StyleElement child)
isPermittedChild
in class StyleElement
public boolean isOverriding()
public void fixupReferences() throws XPathException
fixupReferences
in class StyleElement
XPathException
public void validate() throws XPathException
StyleElement
validate
in class StyleElement
XPathException
public Expression compile(Executable exec) throws XPathException
compile
in class StyleElement
XPathException
public SlotManager getSlotManager()
getSlotManager
in interface StylesheetProcedure
public int getFunctionFingerprint()
public SequenceType getResultType()
public int getNumberOfArguments()
public void setParameterDefinitions(UserFunction fn)
public UserFunction getCompiledFunction()
public int getConstructType()
Location
. This method is part of the
InstructionInfo
interfacegetConstructType
in interface InstructionInfo
getConstructType
in class StyleElement