| |
|
| net.sf.saxon.style.StyleElement net.sf.saxon.style.XSLFunction
XSLFunction | public class XSLFunction extends StyleElement implements StylesheetProcedure(Code) | | Handler for xsl:function elements in stylesheet (XSLT 2.0).
Attributes:
name gives the name of the function
saxon:memo-function=yes|no indicates whether it acts as a memo function.
|
compile | public Expression compile(Executable exec) throws XPathException(Code) | | Compile the function definition to create an executable representation
an Instruction, or null. The instruction returned is actuallyrather irrelevant; the compile() method has the side-effect of bindingall references to the function to the executable representation(a UserFunction object) throws: XPathException - |
getCompiledFunction | public UserFunction getCompiledFunction()(Code) | | Get the compiled function
|
getFunctionFingerprint | public int getFunctionFingerprint()(Code) | | Get the fingerprint of the name of this function.
the fingerprint of the name |
getNumberOfArguments | public int getNumberOfArguments()(Code) | | Get the number of arguments declared by this function (that is, its arity).
the arity of the function |
getResultType | public SequenceType getResultType()(Code) | | Get the type of value returned by this function
the declared result type, or the inferred result typeif this is more precise |
getSlotManager | public SlotManager getSlotManager()(Code) | | Get associated Procedure (for details of stack frame).
the associated Procedure object |
isOverriding | public boolean isOverriding()(Code) | | Is override="yes"?.
true if override="yes" was specified, otherwise false |
isPermittedChild | protected boolean isPermittedChild(StyleElement child)(Code) | | Specify that xsl:param is a permitted child
|
mayContainSequenceConstructor | public boolean mayContainSequenceConstructor()(Code) | | Determine whether this type of element is allowed to contain a template-body.
true: yes, it may contain a general template-body |
registerReference | public void registerReference(UserFunctionCall ref)(Code) | | Method called by UserFunctionCall to register the function call for
subsequent fixup.
Parameters: ref - the UserFunctionCall to be registered |
setParameterDefinitions | public void setParameterDefinitions(UserFunction fn)(Code) | | Set the definitions of the parameters in the compiled function, as an array.
|
Methods inherited from net.sf.saxon.style.StyleElement | public int allocateLocationId(String systemId, int lineNumber)(Code)(Java Doc) public void allocateSlots(Expression exp)(Code)(Java Doc) public boolean backwardsCompatibleModeIsEnabled()(Code)(Java Doc) public XSLVariableDeclaration bindVariable(int fingerprint) throws StaticError(Code)(Java Doc) public void checkEmpty() throws XPathException(Code)(Java Doc) protected void checkSortComesFirst(boolean sortRequired) throws XPathException(Code)(Java Doc) public void checkTopLevel(String errorCode) throws XPathException(Code)(Java Doc) protected void checkUnknownAttribute(int nc) throws XPathException(Code)(Java Doc) public void checkWithinTemplate() throws XPathException(Code)(Java Doc) abstract public Expression compile(Executable exec) throws XPathException(Code)(Java Doc) protected void compileError(TransformerException error) throws XPathException(Code)(Java Doc) protected void compileError(String message) throws XPathException(Code)(Java Doc) protected void compileError(String message, String errorCode) throws XPathException(Code)(Java Doc) public Expression compileSequenceConstructor(Executable exec, AxisIterator iter, boolean includeParams) throws XPathException(Code)(Java Doc) protected void compileWarning(String message, String errorCode) throws XPathException(Code)(Java Doc) protected boolean definesExcludedNamespace(short uriCode)(Code)(Java Doc) protected boolean definesExtensionElement(short uriCode)(Code)(Java Doc) protected Expression fallbackProcessing(Executable exec, StyleElement instruction) throws XPathException(Code)(Java Doc) public void fixupReferences() throws XPathException(Code)(Java Doc) public boolean forwardsCompatibleModeIsEnabled()(Code)(Java Doc) protected AttributeSet[] getAttributeSets(String use, List list) throws XPathException(Code)(Java Doc) public String getAttributeValue(String clarkName)(Code)(Java Doc) protected ItemType getCommonChildItemType()(Code)(Java Doc) public int getConstructType()(Code)(Java Doc) public SlotManager getContainingSlotManager()(Code)(Java Doc) public XSLStylesheet getContainingStylesheet()(Code)(Java Doc) protected String getDefaultCollationName()(Code)(Java Doc) protected short getDefaultXPathNamespace()(Code)(Java Doc) public Executable getExecutable()(Code)(Java Doc) protected StyleElement getLastChildInstruction()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) public int getLineNumber(int locationId)(Code)(Java Doc) public LocationProvider getLocationProvider()(Code)(Java Doc) public NamespaceResolver getNamespaceResolver()(Code)(Java Doc) public int getObjectFingerprint()(Code)(Java Doc) public int getObjectNameCode()(Code)(Java Doc) public int getPrecedence()(Code)(Java Doc) public PreparedStylesheet getPreparedStylesheet()(Code)(Java Doc) protected XSLStylesheet getPrincipalStylesheet()(Code)(Java Doc) public Iterator getProperties()(Code)(Java Doc) public Object getProperty(String name)(Code)(Java Doc) protected ItemType getReturnedItemType()(Code)(Java Doc) public SchemaType getSchemaType(String typeAtt) throws XPathException(Code)(Java Doc) public StaticContext getStaticContext()(Code)(Java Doc) public XSLFunction getStylesheetFunction(int fingerprint, int arity)(Code)(Java Doc) public String getSystemId(int locationId)(Code)(Java Doc) public NamePool getTargetNamePool()(Code)(Java Doc) public int getTypeAnnotation(SchemaType schemaType)(Code)(Java Doc) public BigDecimal getVersion()(Code)(Java Doc) protected WithParam[] getWithParamInstructions(Executable exec, boolean tunnel, Instruction caller) throws XPathException(Code)(Java Doc) public boolean isExcludedNamespace(short uriCode)(Code)(Java Doc) protected boolean isExplaining()(Code)(Java Doc) public boolean isExtensionNamespace(short uriCode)(Code)(Java Doc) public boolean isInstruction()(Code)(Java Doc) protected boolean isPermittedChild(StyleElement child)(Code)(Java Doc) public boolean isTopLevel()(Code)(Java Doc) protected void issueWarning(TransformerException error)(Code)(Java Doc) protected void issueWarning(String message, SourceLocator locator)(Code)(Java Doc) public Expression makeAttributeValueTemplate(String expression) throws XPathException(Code)(Java Doc) public Expression makeExpression(String expression) throws XPathException(Code)(Java Doc) final public int makeNameCode(String qname) throws XPathException, NamespaceException(Code)(Java Doc) public SavedNamespaceContext makeNamespaceContext()(Code)(Java Doc) public Pattern makePattern(String pattern) throws XPathException(Code)(Java Doc) public SequenceType makeSequenceType(String sequenceType) throws XPathException(Code)(Java Doc) protected SortKeyDefinition[] makeSortKeys()(Code)(Java Doc) protected static TraceWrapper makeTraceInstruction(StyleElement source, Expression child)(Code)(Java Doc) public void markTailCalls()(Code)(Java Doc) public boolean mayContainFallback()(Code)(Java Doc) public boolean mayContainSequenceConstructor()(Code)(Java Doc) public void postValidate() throws XPathException(Code)(Java Doc) abstract public void prepareAttributes() throws XPathException(Code)(Java Doc) public void processAllAttributes() throws XPathException(Code)(Java Doc) final public void processAttributes() throws XPathException(Code)(Java Doc) protected void processDefaultCollationAttribute(String nc) throws XPathException(Code)(Java Doc) protected void processDefaultXPathNamespaceAttribute(String nc)(Code)(Java Doc) protected void processExcludedNamespaces(String nc) throws XPathException(Code)(Java Doc) protected void processExtensionElementAttribute(String nc) throws XPathException(Code)(Java Doc) protected void processVersionAttribute(String nc) throws XPathException(Code)(Java Doc) public void reportAbsence(String attribute) throws XPathException(Code)(Java Doc) public void setLineNumber(int lineNumber)(Code)(Java Doc) public void setObjectNameCode(int nameCode)(Code)(Java Doc) protected void setValidationError(TransformerException reason, int circumstances)(Code)(Java Doc) public void substituteFor(StyleElement temp)(Code)(Java Doc) public Expression typeCheck(String name, Expression exp) throws XPathException(Code)(Java Doc) public Pattern typeCheck(String name, Pattern pattern) throws XPathException(Code)(Java Doc) protected void undeclaredNamespaceError(String prefix, String errorCode) throws XPathException(Code)(Java Doc) public void validate() throws XPathException(Code)(Java Doc) protected void validateChildren() throws XPathException(Code)(Java Doc) public void validateSubtree() throws XPathException(Code)(Java Doc)
|
|
|
|