|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.instruct.UserFunction
public final class UserFunction
This object represents the compiled form of a user-written function (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 | |
|---|---|
UserFunction(Expression body)
|
|
| Method Summary | |
|---|---|
Value |
call(Value[] actualArgs,
Controller controller)
Call this function |
int |
getColumnNumber()
|
String |
getFunctionName()
|
String |
getInstructionName()
Get the name of the instruction. |
int |
getLineNumber()
Get the line number of the instruction in the source stylesheet module. |
HashMap |
getProperties()
Get all the properties of the instruction. |
Object |
getProperty(String propertyName)
Get the value of a particular property of the instruction. |
String |
getPublicId()
|
String |
getSystemId()
Get the system identifier (URI) of the source stylesheet module containing the instruction. |
void |
setFunctionName(String name)
|
void |
setLineNumber(int lineNumber)
|
void |
setMemoFunction(boolean isMemo)
|
void |
setSystemId(String systemId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserFunction(Expression body)
| Method Detail |
|---|
public void setLineNumber(int lineNumber)
public void setSystemId(String systemId)
public int getLineNumber()
InstructionInfo
getLineNumber in interface SourceLocatorgetLineNumber in interface InstructionInfopublic String getSystemId()
InstructionInfo
getSystemId in interface SourceLocatorgetSystemId in interface InstructionInfopublic int getColumnNumber()
getColumnNumber in interface SourceLocatorpublic String getPublicId()
getPublicId in interface SourceLocatorpublic String getInstructionName()
InstructionInfo
getInstructionName in interface InstructionInfopublic Object getProperty(String propertyName)
InstructionInfo
getProperty in interface InstructionInfopropertyName - The name of the required property
public HashMap getProperties()
InstructionInfo
getProperties in interface InstructionInfopublic void setMemoFunction(boolean isMemo)
public void setFunctionName(String name)
public String getFunctionName()
getFunctionName in interface CallableFunction
public Value call(Value[] actualArgs,
Controller controller)
throws TransformerException
call in interface CallableFunctionTransformerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||