| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectnet.sf.saxon.tree.NodeImplnet.sf.saxon.tree.ParentNodeImplnet.sf.saxon.tree.ElementImplnet.sf.saxon.tree.ElementWithAttributesnet.sf.saxon.style.StyleElementnet.sf.saxon.style.XSLFunctionField Summary |
Fields inherited from class net.sf.saxon.style.StyleElement | |
REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, defaultCollationName, defaultXPathNamespace, extensionNamespaces, reportingCircumstances, staticContext, validationError, version | |
Fields inherited from class net.sf.saxon.tree.ElementWithAttributes | |
attributeList, namespaceList | |
Fields inherited from class net.sf.saxon.tree.ElementImpl | |
nameCode, root | |
Fields inherited from class net.sf.saxon.tree.ParentNodeImpl | |
sequence | |
Fields inherited from class net.sf.saxon.tree.NodeImpl | |
NODE_LETTER, index, parent | |
Fields inherited from interface net.sf.saxon.om.NodeInfo | |
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES | |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation | |
EMPTY_VALUE_ARRAY | |
Method Summary | |
Expression |
|
void |
|
UserFunction |
|
int |
|
int |
|
StructuredQName |
|
SequenceType |
|
SlotManager |
|
boolean |
|
protected boolean |
|
boolean |
|
void | |
void |
|
void |
|
void |
|
Methods inherited from class net.sf.saxon.tree.ElementWithAttributes | |
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, setNamespaceDeclarations | |
Methods inherited from class net.sf.saxon.tree.ElementImpl | |
copy, generateId, getAttributeList, getBaseURI, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNodeKind, getRoot, getSystemId, initialise, setLineNumber, setNameCode, setSystemId | |
Methods inherited from class net.sf.saxon.tree.ParentNodeImpl | |
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArray | |
public Expression compile(Executable exec) throws XPathException
Compile the function definition to create an executable representation
- Overrides:
- compile in interface StyleElement
- Returns:
- an Instruction, or null. The instruction returned is actually rather irrelevant; the compile() method has the side-effect of binding all references to the function to the executable representation (a UserFunction object)
- Throws:
XPathException-
public void fixupReferences()
throws XPathExceptionNotify all references to this function of the data type.
- Overrides:
- fixupReferences in interface StyleElement
- Throws:
XPathException-
public UserFunction getCompiledFunction()
Get the compiled function
- Returns:
- the object representing the compiled user-written function
public int getConstructType()
Get the type of construct. This will be a constant in classLocation. This method is part of theInstructionInfointerface
- Specified by:
- getConstructType in interface InstructionInfo
- Overrides:
- getConstructType in interface StyleElement
public int getNumberOfArguments()
Get the number of arguments declared by this function (that is, its arity).
- Returns:
- the arity of the function
public StructuredQName getObjectName()
Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically. If there is no name, the value will be -1.
- Overrides:
- getObjectName in interface StyleElement
public SequenceType getResultType()
Get the type of value returned by this function
- Returns:
- the declared result type, or the inferred result type if this is more precise
public SlotManager getSlotManager()
Get associated Procedure (for details of stack frame).
- Specified by:
- getSlotManager in interface StylesheetProcedure
- Returns:
- the associated Procedure object
public boolean isOverriding()
Is override="yes"?.
- Returns:
- true if override="yes" was specified, otherwise false
protected boolean isPermittedChild(StyleElement child)
Specify that xsl:param is a permitted child
- Overrides:
- isPermittedChild in interface StyleElement
public boolean mayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a template-body.
- Overrides:
- mayContainSequenceConstructor in interface StyleElement
- Returns:
- true: yes, it may contain a general template-body
public void prepareAttributes()
throws XPathException
- Overrides:
- prepareAttributes in interface StyleElement
public void registerReference(UserFunctionCall ref)
Method called by UserFunctionCall to register the function call for subsequent fixup.
- Parameters:
ref- the UserFunctionCall to be registered
public void setParameterDefinitions(UserFunction fn)
Set the definitions of the parameters in the compiled function, as an array.
- Parameters:
fn- the compiled object representing the user-written function