|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.FunctionInstr
public final class FunctionInstr
Handler for xsl:function elements in stylesheet (XSLT 2.0).
Attributes:
name gives the name of the function
saxon:memo-function=yes|no indicates whether it acts as a memo function.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.instruct.Instruction |
|---|
children |
| Constructor Summary | |
|---|---|
FunctionInstr()
A FunctionInstr is constructed in two stages. |
|
| Method Summary | |
|---|---|
Value |
call(Value[] actualArgs,
Controller controller)
Call this function |
String |
getFunctionName()
|
String |
getInstructionName()
Get the name of the instruction. |
int |
getLineNumber()
Get the line number of the source stylesheet instruction within its 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 |
getSystemId()
Get the system identifier (URI) of the source stylesheet module containing the instruction. |
void |
initialize(Sequence body,
String baseURI,
String displayName,
boolean memoFunction)
|
TailCall |
processLeavingTail(XPathContext context)
Dummy processLeavingTail() method |
void |
setInstructionDetails(Controller controller,
NamePool namePool,
InstructionDetails details)
Get the name of this instruction for diagnostic and tracing purposes |
void |
setLineNumber(int lineNumber)
|
| Methods inherited from class net.sf.saxon.instruct.Instruction |
|---|
assembleParams, assembleTunnelParams, getChildren, getColumnNumber, getInstructionDetails, getPublicId, getResultType, getSystemId, process, processChildren, processChildrenLeavingTail, recoverableError, setChildren, setSourceLocation, styleError, styleError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionInstr()
| Method Detail |
|---|
public void initialize(Sequence body,
String baseURI,
String displayName,
boolean memoFunction)
public void setLineNumber(int lineNumber)
public int getLineNumber()
Instruction
getLineNumber in interface SourceLocatorgetLineNumber in interface InstructionInfogetLineNumber in class Instructionpublic String getSystemId()
InstructionInfo
getSystemId in interface SourceLocatorgetSystemId in interface InstructionInfogetSystemId in class Instructionpublic Object getProperty(String propertyName)
InstructionInfo
getProperty in interface InstructionInfopropertyName - The name of the required property
public HashMap getProperties()
InstructionInfo
getProperties in interface InstructionInfo
public void setInstructionDetails(Controller controller,
NamePool namePool,
InstructionDetails details)
setInstructionDetails in class Instructionpublic String getInstructionName()
InstructionInfo
getInstructionName in interface InstructionInfogetInstructionName in class Instructionpublic String getFunctionName()
getFunctionName in interface CallableFunctionpublic TailCall processLeavingTail(XPathContext context)
processLeavingTail in class Instructioncontext - The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
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 | ||||||||