net.sf.saxon.instruct
public abstract class Procedure extends Object implements Serializable, Container, InstructionInfo, LocationProvider
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.
Field Summary | |
---|---|
protected Expression | body |
Constructor Summary | |
---|---|
Procedure() |
Method Summary | |
---|---|
Expression | getBody() |
int | getColumnNumber() |
int | getColumnNumber(long locationId) |
int | getContainerGranularity()
Get the granularity of the container. |
Executable | getExecutable() |
int | getHostLanguage() |
int | getLineNumber() |
int | getLineNumber(long locationId) |
LocationProvider | getLocationProvider()
Get the LocationProvider allowing location identifiers to be resolved. |
Iterator | getProperties()
Get an iterator over all the properties available. |
Object | getProperty(String name) |
String | getPublicId() |
SlotManager | getStackFrameMap() |
String | getSystemId() |
String | getSystemId(long locationId) |
void | setBody(Expression body) |
void | setExecutable(Executable executable) |
void | setHostLanguage(int language) |
void | setLineNumber(int lineNumber) |
void | setStackFrameMap(SlotManager map) |
void | setSystemId(String systemId) |
Returns: 0 for a temporary container created during parsing; 1 for a container that operates at the level of an XPath expression; 2 for a container at the level of a global function or template