net.sf.saxon.instruct
Class Procedure
java.lang.Object
net.sf.saxon.instruct.Procedure
- Serializable, Container, SourceLocator, LocationProvider
public abstract class Procedure
extends java.lang.Object
This object represents the compiled form of a user-written function, template, attribute-set, etc
(the source can be either an XSLT stylesheet function or an XQuery function).
It is assumed that type-checking, of both the arguments and the results,
has been handled at compile time. That is, the expression supplied as the body
of the function must be wrapped in code to check or convert the result to the
required type, and calls on the function must be wrapped at compile time to check or
convert the supplied arguments.
Procedure
public Procedure()
getColumnNumber
public int getColumnNumber()
getLineNumber
public int getLineNumber()
getLineNumber
public int getLineNumber(long locationId)
Get the line number within the document or module containing a particular location
- getLineNumber in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
- the line number within the document or module.
getPublicId
public String getPublicId()
getSystemId
public String getSystemId()
getSystemId
public String getSystemId(long locationId)
Get the URI of the document or module containing a particular location
- getSystemId in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
- the URI of the document or module.
replaceSubExpression
public boolean replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression
- replaceSubExpression in interface Container
original
- the original subexpressionreplacement
- the replacement subexpression
- true if the original subexpression is found
setExecutable
public void setExecutable(Executable executable)
setHostLanguage
public void setHostLanguage(int language)
setLineNumber
public void setLineNumber(int lineNumber)
setStackFrameMap
public void setStackFrameMap(SlotManager map)
setSystemId
public void setSystemId(String systemId)