public class ElemVariable extends ElemTemplateElement
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
ElemVariable()
Constructor ElemVariable
|
ElemVariable(ElemVariable param)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ElemTemplateElement |
appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
void |
compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
execute(TransformerImpl transformer)
Execute a variable declaration and push it onto the variable stack.
|
int |
getIndex()
If this element is not at the top-level, get the relative position of the
variable into the stack frame.
|
boolean |
getIsTopLevel()
Get if this is a top-level variable or param, or not.
|
QName |
getName()
Get the "name" attribute.
|
java.lang.String |
getNodeName()
Return the node name.
|
XPath |
getSelect()
Get the "select" attribute.
|
XObject |
getValue(TransformerImpl transformer,
int sourceNode)
Get the XObject representation of the variable.
|
int |
getXSLToken()
Get an integer representation of the element type.
|
boolean |
isPsuedoVar()
Tell if this is a psuedo variable reference, declared by Xalan instead
of by the user.
|
void |
recompose(StylesheetRoot root)
This function is called during recomposition to
control how this element is composed.
|
void |
setIndex(int index)
Sets the relative position of this variable within the stack frame (if local)
or the global area (if global).
|
void |
setIsTopLevel(boolean v)
Set if this is a top-level variable or param, or not.
|
void |
setName(QName v)
Set the "name" attribute.
|
void |
setParentElem(ElemTemplateElement p)
Set the parent as an ElemTemplateElement.
|
void |
setSelect(XPath v)
Set the "select" attribute.
|
appendChild, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, containsExcludeResultPrefix, error, error, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setEndLocaterInfo, setLocaterInfo, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpaceadoptNode, appendData, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getActualEncoding, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getInputEncoding, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSchemaTypeInfo, getSpecified, getStrictErrorChecking, getTextContent, getUserData, getWholeText, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isDefaultNamespace, isEqualNode, isId, isSameNode, isSupported, isWhitespaceInElementContent, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, renameNode, replaceData, replaceWholeText, setActualEncoding, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setDocumentURI, setIdAttribute, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInputEncoding, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setValue, setXmlEncoding, setXmlStandalone, setXmlVersion, splitText, substringDatapublic ElemVariable()
public ElemVariable(ElemVariable param) throws javax.xml.transform.TransformerException
param - An element created from an xsl:variablejavax.xml.transform.TransformerExceptionpublic void setIndex(int index)
public int getIndex()
public void setSelect(XPath v)
v - Value to set for the "select" attribute.public XPath getSelect()
public void setName(QName v)
v - Value to set for the "name" attribute.public QName getName()
public void setIsTopLevel(boolean v)
v - Boolean indicating whether this is a top-level variable
or param, or not.public boolean getIsTopLevel()
public int getXSLToken()
getXSLToken in class ElemTemplateElementConstantspublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.NodegetNodeName in class ElemTemplateElementpublic void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute in class ElemTemplateElementtransformer - non-null reference to the the current transform-time state.javax.xml.transform.TransformerExceptionpublic XObject getValue(TransformerImpl transformer, int sourceNode) throws javax.xml.transform.TransformerException
transformer - non-null reference to the the current transform-time state.sourceNode - non-null reference to the current source node.javax.xml.transform.TransformerExceptionpublic void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose in class ElemTemplateElementjavax.xml.transform.TransformerExceptionpublic void endCompose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
endCompose in class ElemTemplateElementjavax.xml.transform.TransformerExceptionpublic void recompose(StylesheetRoot root)
recompose in class ElemTemplateElementroot - The root stylesheet for this transformation.public void setParentElem(ElemTemplateElement p)
setParentElem in class ElemTemplateElementp - This node's parent as an ElemTemplateElementpublic boolean isPsuedoVar()
public ElemTemplateElement appendChild(ElemTemplateElement elem)
appendChild in class ElemTemplateElementelem - New element to append to this element's children listCopyright © 2023 Apache XML Project. All Rights Reserved.