|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.tree.linked.NodeImpl
net.sf.saxon.tree.linked.ParentNodeImpl
net.sf.saxon.tree.linked.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.tree.linked.NodeImpl |
---|
NODE_LETTER |
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(Declaration decl,
PrincipalStylesheetModule top)
Method supplied by declaration elements to add themselves to a stylesheet-level index |
boolean |
isDeclaration()
Ask whether this node is a declaration, that is, a permitted child of xsl:stylesheet (including xsl:include and xsl:import). |
boolean |
isInstruction()
Determine whether this node is an instruction. |
void |
optimize(Declaration declaration)
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(Declaration decl)
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.linked.ParentNodeImpl |
---|
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber |
Methods inherited from class net.sf.saxon.tree.linked.NodeImpl |
---|
atomize, compareOrder, equals, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRawParent, getSiblingPosition, getTypedValue, getURI, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterateAxis, iterateAxis, newBuilder, replace, setRawParent, setSiblingPosition |
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 boolean isDeclaration()
isDeclaration
in class StyleElement
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(Declaration decl) throws XPathException
validate
in class XSLGeneralVariable
decl
-
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(Declaration decl, PrincipalStylesheetModule top) throws XPathException
StyleElement
index
in class StyleElement
decl
- the Declaration being indexed. (This corresponds to the StyleElement object
except in cases where one module is imported several times with different precedence.)top
- the outermost XSLStylesheet element
XPathException
public void optimize(Declaration declaration) throws XPathException
optimize
in interface StylesheetProcedure
declaration
-
XPathException
public GeneralVariable getCompiledVariable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |