public class ElemVariable extends ElemTemplateElement
Modifier and Type | Field and Description |
---|---|
protected int |
m_index
This is the index into the stack frame.
|
protected QName |
m_qname
The value of the "name" attribute.
|
m_docOrderNumber, m_hasVariableDecl, m_parentNode
actualEncoding, fDocumentURI
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 |
---|---|
protected boolean |
accept(XSLTVisitor visitor)
Accept a visitor and call the appropriate method
for this class.
|
ElemTemplateElement |
appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
protected void |
callChildVisitors(XSLTVisitor visitor,
boolean callAttrs)
Call the children visitors.
|
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.
|
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, callChildVisitors, 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, shouldStripWhiteSpace
adoptNode, 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, substringData
protected int m_index
protected QName m_qname
public ElemVariable()
public ElemVariable(ElemVariable param) throws TransformerException
param
- An element created from an xsl:variableTransformerException
public 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 ElemTemplateElement
Constants
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class ElemTemplateElement
public void execute(TransformerImpl transformer) throws TransformerException
execute
in class ElemTemplateElement
transformer
- non-null reference to the the current transform-time state.TransformerException
public XObject getValue(TransformerImpl transformer, int sourceNode) throws TransformerException
transformer
- non-null reference to the the current transform-time state.sourceNode
- non-null reference to the current source node.TransformerException
public void compose(StylesheetRoot sroot) throws TransformerException
compose
in class ElemTemplateElement
TransformerException
public void endCompose(StylesheetRoot sroot) throws TransformerException
endCompose
in class ElemTemplateElement
TransformerException
public void recompose(StylesheetRoot root)
recompose
in class ElemTemplateElement
root
- The root stylesheet for this transformation.public void setParentElem(ElemTemplateElement p)
setParentElem
in class ElemTemplateElement
p
- This node's parent as an ElemTemplateElementprotected boolean accept(XSLTVisitor visitor)
accept
in class ElemTemplateElement
visitor
- The visitor whose appropriate method will be called.protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
callChildVisitors
in class ElemTemplateElement
visitor
- The visitor whose appropriate method will be called.public boolean isPsuedoVar()
public ElemTemplateElement appendChild(ElemTemplateElement elem)
appendChild
in class ElemTemplateElement
elem
- New element to append to this element's children listCopyright © 2016 JBoss by Red Hat. All rights reserved.