|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.tree.NodeImpl
net.sf.saxon.tree.ParentNodeImpl
net.sf.saxon.tree.ElementImpl
net.sf.saxon.style.StyleElement
net.sf.saxon.style.XSLGeneralVariable
net.sf.saxon.style.XSLVariableDeclaration
public abstract class XSLVariableDeclaration
Generic class for xsl:variable and xsl:param elements.
Field Summary | |
---|---|
protected java.util.List |
references
|
Fields inherited from class net.sf.saxon.style.XSLGeneralVariable |
---|
assignable, compiledVariable, constantText, global, implicitlyRequiredParam, redundant, requiredParam, requiredType, select, slotManager, tunnel |
Fields inherited from class net.sf.saxon.style.StyleElement |
---|
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version |
Fields inherited from class net.sf.saxon.tree.ElementImpl |
---|
attributeList, nameCode, namespaceList, typeCode |
Fields inherited from class net.sf.saxon.tree.ParentNodeImpl |
---|
children, sequence |
Fields inherited from class net.sf.saxon.tree.NodeImpl |
---|
index, NODE_LETTER, parent |
Fields inherited from interface net.sf.saxon.om.NodeInfo |
---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
Constructor Summary | |
---|---|
XSLVariableDeclaration()
|
Method Summary | |
---|---|
protected void |
fixupBinding(Binding binding)
Notify all variable references of the Binding instruction |
void |
fixupReferences()
Notify all references to this variable of the data type |
GeneralVariable |
getCompiledVariable()
Get the compiled variable |
abstract SequenceType |
getRequiredType()
Get the static type of the variable. |
SlotManager |
getSlotManager()
Get the SlotManager associated with this stylesheet construct. |
int |
getSlotNumber()
Get the slot number allocated to this variable (its position in the stackframe) |
protected void |
index(XSLStylesheet top)
Method supplied by declaration elements to add themselves to a stylesheet-level index |
boolean |
isInstruction()
Determine whether this node is an instruction. |
void |
optimize()
Optimize the stylesheet construct |
void |
registerReference(BindingReference ref)
Method called by VariableReference to register the variable reference for subsequent fixup |
protected void |
setReferenceCount(GeneralVariable var)
Set the number of references to this variable. |
void |
setSlotNumber(int slot)
Allocate a slot number to this variable |
void |
validate()
Check that the variable is not already declared, and allocate a slot number |
Methods inherited from class net.sf.saxon.style.XSLGeneralVariable |
---|
allowsAsAttribute, allowsRequired, allowsTunnelAttribute, allowsValue, checkAgainstRequiredType, getConstructType, getReturnedItemType, getVariableDisplayName, getVariableQName, initializeInstruction, isAssignable, isGlobal, isRequiredParam, isTunnelParam, mayContainSequenceConstructor, postValidate, prepareAttributes, setRedundant |
Methods inherited from class net.sf.saxon.tree.ParentNodeImpl |
---|
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, removeChild, replaceChildrenAt, useChildrenArray |
Methods inherited from class net.sf.saxon.tree.NodeImpl |
---|
atomize, compareOrder, equals, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getTypedValue, getURI, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterateAxis, iterateAxis, newBuilder, replace |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.VariableDeclaration |
---|
getVariableQName |
Methods inherited from interface net.sf.saxon.trace.InstructionInfo |
---|
getLineNumber, getSystemId |
Methods inherited from interface org.xml.sax.Locator |
---|
getColumnNumber, getPublicId |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getPublicId |
Methods inherited from interface net.sf.saxon.om.NodeInfo |
---|
hashCode |
Field Detail |
---|
protected java.util.List references
Constructor Detail |
---|
public XSLVariableDeclaration()
Method Detail |
---|
public SlotManager getSlotManager()
getSlotManager
in interface StylesheetProcedure
public int getSlotNumber()
public void setSlotNumber(int slot)
slot
- the position of the variable on the local stack framepublic abstract SequenceType getRequiredType()
public void registerReference(BindingReference ref)
registerReference
in interface VariableDeclaration
ref
- the variable referencepublic boolean isInstruction()
isInstruction
in class StyleElement
public void fixupReferences() throws XPathException
fixupReferences
in class StyleElement
XPathException
public void validate() throws XPathException
validate
in class XSLGeneralVariable
XPathException
protected void fixupBinding(Binding binding)
binding
- the Binding that represents this variable declaration in the executable code treeprotected void setReferenceCount(GeneralVariable var)
setReferenceCount
in class XSLGeneralVariable
var
- the variableprotected void index(XSLStylesheet top) throws XPathException
StyleElement
index
in class StyleElement
top
- the outermost XSLStylesheet element
XPathException
public void optimize() throws XPathException
optimize
in interface StylesheetProcedure
XPathException
public GeneralVariable getCompiledVariable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |