org.apache.xalan.templates
Class ElemExsltFunction

java.lang.Object
  extended byorg.apache.xml.utils.UnImplNode
      extended byorg.apache.xalan.templates.ElemTemplateElement
          extended byorg.apache.xalan.templates.ElemTemplate
              extended byorg.apache.xalan.templates.ElemExsltFunction
All Implemented Interfaces:
org.w3c.dom.Document, org.w3c.dom.Element, ExpressionNode, org.w3c.dom.Node, org.w3c.dom.NodeList, PrefixResolver, Serializable, javax.xml.transform.SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable

public class ElemExsltFunction
extends ElemTemplate

Implement func:function.

See Also:
Serialized Form

Field Summary
private  int _resultIndex
          Add the namespace to the StylesheetRoot vector of extension namespaces.
 
Fields inherited from class org.apache.xalan.templates.ElemTemplate
m_frameSize, m_inArgsSize
 
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode, m_prefixTable
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
ElemExsltFunction()
           
 
Method Summary
 void compose(StylesheetRoot sroot)
          Called after everything else has been recomposed, and allows the function to set remaining values that may be based on some other property that depends on recomposition.
 void execute(TransformerImpl transformer, XObject[] args)
           
 String getNodeName()
          Return the node name, defined in the Constants class.
 int getResultIndex()
          Provides the EXSLT extension handler access to the return value.
 int getXSLToken()
          Get an integer representation of the element type.
(package private)  void setResultIndex(int stackIndex)
          Sets aside a position on the local variable stack index to refer to the result element return value.
 
Methods inherited from class org.apache.xalan.templates.ElemTemplate
endCompose, execute, getMatch, getMode, getName, getPriority, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, recompose, setLocaterInfo, setMatch, setMode, setName, setPriority, setStylesheet
 
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement
accept, addOrReplaceDecls, appendChild, appendChild, callChildVisitors, callChildVisitors, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, containsExcludeResultPrefix, error, error, executeNSDecls, executeNSDecls, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPrefixes, getPreviousSibling, getPreviousSiblingElem, getTagName, getUid, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, isValidNCName, item, needToCheckExclude, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace, unexecuteNSDecls, unexecuteNSDecls
 
Methods inherited from class org.apache.xml.utils.UnImplNode
adoptNode, appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getImplementation, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSpecified, getStandalone, getStrictErrorChecking, getVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setEncoding, setNodeValue, setPrefix, setStandalone, setStrictErrorChecking, setValue, setVersion, splitText, substringData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_resultIndex

private int _resultIndex
Add the namespace to the StylesheetRoot vector of extension namespaces. Be sure the exslt:function namespace is also added.

Constructor Detail

ElemExsltFunction

public ElemExsltFunction()
Method Detail

getXSLToken

public int getXSLToken()
Get an integer representation of the element type.

Overrides:
getXSLToken in class ElemTemplate
Returns:
An integer representation of the element, defined in the Constants class.
See Also:
Constants

getNodeName

public String getNodeName()
Return the node name, defined in the Constants class.

Specified by:
getNodeName in interface org.w3c.dom.Node
Overrides:
getNodeName in class ElemTemplate
Returns:
The node name
See Also:
org.apache.xalan.templates.Constants.

execute

public void execute(TransformerImpl transformer,
                    XObject[] args)
             throws javax.xml.transform.TransformerException
Throws:
javax.xml.transform.TransformerException

compose

public void compose(StylesheetRoot sroot)
             throws javax.xml.transform.TransformerException
Called after everything else has been recomposed, and allows the function to set remaining values that may be based on some other property that depends on recomposition. Also adds a slot to the variable stack for the return value. The result element will place its value in this slot.

Overrides:
compose in class ElemTemplate
Throws:
javax.xml.transform.TransformerException

setResultIndex

void setResultIndex(int stackIndex)
Sets aside a position on the local variable stack index to refer to the result element return value.


getResultIndex

public int getResultIndex()
Provides the EXSLT extension handler access to the return value.