|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.instruct.Procedure
public abstract class Procedure
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.
| Constructor Summary | |
|---|---|
Procedure()
|
|
| Method Summary | |
|---|---|
Expression |
getBody()
|
int |
getColumnNumber()
|
Executable |
getExecutable()
Get the Executable (representing a complete stylesheet or query) of which this Container forms part |
int |
getHostLanguage()
Get the host language (XSLT, XQuery, XPath) used to implement the code in this container |
int |
getLineNumber()
|
int |
getLineNumber(long locationId)
Get the line number within the document or module containing a particular location |
LocationProvider |
getLocationProvider()
Get the LocationProvider allowing location identifiers to be resolved. |
String |
getPublicId()
|
SlotManager |
getStackFrameMap()
|
String |
getSystemId()
|
String |
getSystemId(long locationId)
Get the URI of the document or module containing a particular location |
boolean |
replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression |
void |
setBody(Expression body)
|
void |
setExecutable(Executable executable)
|
void |
setHostLanguage(int language)
|
void |
setLineNumber(int lineNumber)
|
void |
setStackFrameMap(SlotManager map)
|
void |
setSystemId(String systemId)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Procedure()
| Method Detail |
|---|
public void setBody(Expression body)
public void setHostLanguage(int language)
public int getHostLanguage()
Container
getHostLanguage in interface ContainerConfiguration.XSLT or Configuration.XQUERYpublic final Expression getBody()
public boolean replaceSubExpression(Expression original,
Expression replacement)
replaceSubExpression in interface Containeroriginal - the original subexpressionreplacement - the replacement subexpression
public void setStackFrameMap(SlotManager map)
public SlotManager getStackFrameMap()
public final Executable getExecutable()
Container
getExecutable in interface Containerpublic void setExecutable(Executable executable)
public LocationProvider getLocationProvider()
getLocationProvider in interface Containerpublic void setLineNumber(int lineNumber)
public void setSystemId(String systemId)
public int getLineNumber()
getLineNumber in interface SourceLocatorpublic String getSystemId()
getSystemId in interface SourceLocatorpublic int getColumnNumber()
getColumnNumber in interface SourceLocatorpublic String getPublicId()
getPublicId in interface SourceLocatorpublic String getSystemId(long locationId)
LocationProvider
getSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(long locationId)
LocationProvider
getLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||