public class XSLFunction extends StyleElement implements StylesheetProcedure
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List |
references |
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, versionattributeList, namespaceListnameCode, rootsequenceindex, NODE_LETTER, parentALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_VALUE_ARRAY| Constructor and Description |
|---|
XSLFunction() |
| Modifier and Type | Method and 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.
|
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, validateSubtreecopy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarationsgenerateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemIdaddChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArrayatomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxisclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSystemIdpublic void registerReference(UserFunctionCall ref)
ref - the UserFunctionCall to be registeredpublic void prepareAttributes()
throws XPathException
StyleElementprepareAttributes in class StyleElementXPathExceptionpublic boolean mayContainSequenceConstructor()
mayContainSequenceConstructor in class StyleElementprotected boolean isPermittedChild(StyleElement child)
isPermittedChild in class StyleElementpublic boolean isOverriding()
public void fixupReferences()
throws XPathException
fixupReferences in class StyleElementXPathExceptionpublic void validate()
throws XPathException
StyleElementvalidate in class StyleElementXPathExceptionpublic Expression compile(Executable exec) throws XPathException
compile in class StyleElementXPathExceptionpublic SlotManager getSlotManager()
getSlotManager in interface StylesheetProcedurepublic 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 InstructionInfogetConstructType in class StyleElement