| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List | m_argVec
Array of static expressions which represent the parameters to the function. |
| pack-priv String | m_extensionName
The local name of the extension. |
| pack-priv Object | m_methodKey
Unique method key, which is passed to ExtensionsTable#extFunction in order to allow caching of the method. |
| pack-priv String | m_namespace
The namespace for the extension function, which should not normally be null or empty. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | FuncExtFunction(String
The namespace for the extension function, which should
not normally be null or empty. namespace, String The local name of the extension. extensionName, Object Unique method key, which is passed to
ExtensionsTable#extFunction in order to allow caching
of the method. methodKey)Create a new FuncExtFunction based on the qualified name of the extension, and a unique method key. |
| Modifier and Type | Method and Description |
|---|---|
| public void | callArgVisitors(XPathVisitor visitor)
Overrides com. Call the visitors for the function arguments. |
| public void | checkNumberArgs(int
The number of arguments that is being passed to the function. argNum)Overrides com. Check that the number of arguments passed to this function is correct. |
| public XObject | Returns: A valid XObject.The current execution context. xctxt)Overrides com. Execute the function. |
| public void | exprSetParent(ExpressionNode
The parent node n)Overrides com. Implements com. Set the parent node. |
| public void | fixupVariables(List<QName>
List of QNames that correspond to variables. This list
should be searched backwards for the first qualified name that
corresponds to the variable reference qname. The position of the
QName in the vector from the start of the vector will be its position
in the stack frame (but variables above the globalsTop value will need
to be offset to the current stack frame).
NEEDSDOC @param globalsSize vars, int globalsSize)Implements abstract com. This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time. |
| public Expression | Returns: The Expression object at the given index.The argument number index. n)Return the nth argument passed to the extension function. |
| public int | Returns: The number of arguments.Return the number of arguments that were passed into this extension function. |
| public String | Returns: The name of the extension function.Return the name of the extension function. |
| public Object | Returns: The method key of the extension function.Return the method key of the extension function. |
| public String | Returns: The namespace of the extension function.Return the namespace of the extension function. |
| protected void | reportWrongNumberArgs()
Overrides com. Constructs and throws a WrongNumberArgException with the appropriate message for this function object. |
| public void | setArg(Expression
non-null expression that represents the argument. arg, int The argument number index. argNum)Overrides com. Set an argument expression for a function. |
| public String | toString()
Overrides java. Return the name of the extesion function in string format |
| m_argVec | back to summary |
|---|---|
| pack-priv List<Expression> m_argVec Array of static expressions which represent the parameters to the function.
| |
| m_extensionName | back to summary |
|---|---|
| pack-priv String m_extensionName The local name of the extension. | |
| m_methodKey | back to summary |
|---|---|
| pack-priv Object m_methodKey Unique method key, which is passed to ExtensionsTable#extFunction in order to allow caching of the method.
| |
| m_namespace | back to summary |
|---|---|
| pack-priv String m_namespace The namespace for the extension function, which should not normally be null or empty. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| FuncExtFunction | back to summary |
|---|---|
| public FuncExtFunction(String namespace, String extensionName, Object methodKey) Create a new FuncExtFunction based on the qualified name of the extension, and a unique method key. | |
| callArgVisitors | back to summary |
|---|---|
| public void callArgVisitors(XPathVisitor visitor) Overrides com. Call the visitors for the function arguments. | |
| checkNumberArgs | back to summary |
|---|---|
| public void checkNumberArgs(int argNum) throws WrongNumberArgsException Overrides com. Check that the number of arguments passed to this function is correct.
| |
| execute | back to summary |
|---|---|
| public XObject execute(XPathContext xctxt) throws TransformerException Overrides com. Execute the function. The function must return a valid object.
| |
| exprSetParent | back to summary |
|---|---|
| public void exprSetParent(ExpressionNode n) Overrides com. Implements com. Set the parent node. For an extension function, we also need to set the parent node for all argument expressions.
| |
| fixupVariables | back to summary |
|---|---|
| public void fixupVariables(List<QName> vars, int globalsSize) Implements abstract com. This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
| |
| getArg | back to summary |
|---|---|
| public Expression getArg(int n) Return the nth argument passed to the extension function.
| |
| getArgCount | back to summary |
|---|---|
| public int getArgCount() Return the number of arguments that were passed into this extension function.
| |
| getFunctionName | back to summary |
|---|---|
| public String getFunctionName() Return the name of the extension function.
| |
| getMethodKey | back to summary |
|---|---|
| public Object getMethodKey() Return the method key of the extension function.
| |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Return the namespace of the extension function.
| |
| reportWrongNumberArgs | back to summary |
|---|---|
| protected void reportWrongNumberArgs() throws WrongNumberArgsException Overrides com. Constructs and throws a WrongNumberArgException with the appropriate message for this function object. This class supports an arbitrary number of arguments, so this method must never be called. | |
| setArg | back to summary |
|---|---|
| public void setArg(Expression arg, int argNum) throws WrongNumberArgsException Overrides com. Set an argument expression for a function. This method is called by the XPath compiler.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the name of the extesion function in string format | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Expression |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | getExpression()
Implements com. Get the raw Expression object that this class wraps. |
| public void | setExpression(Expression exp)
Implements com. Set the raw expression object for this object. |
| m_exp | back to summary |
|---|---|
| pack-priv Expression m_exp | |
| ArgExtOwner | back to summary |
|---|---|
| pack-priv ArgExtOwner(Expression exp) | |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Implements com. Doc from com. Get the raw Expression object that this class wraps.
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(Expression exp) Implements com. Doc from com. Set the raw expression object for this object. | |