public abstract class XSLVariableDeclaration extends XSLGeneralVariable implements VariableDeclaration, StylesheetProcedure
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
references |
assignable, compiledVariable, constantText, global, implicitlyRequiredParam, redundant, requiredParam, requiredType, select, slotManager, tunnelACTION_COMPILE, ACTION_FIXUP, ACTION_OPTIMIZE, ACTION_PROCESS_ATTRIBUTES, ACTION_TYPECHECK, ACTION_VALIDATE, actionsCompleted, defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, versionNODE_LETTERALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Constructor and Description |
|---|
XSLVariableDeclaration() |
| Modifier and Type | Method and Description |
|---|---|
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
|
allowsAsAttribute, allowsRequired, allowsTunnelAttribute, allowsValue, checkAgainstRequiredType, getConstructType, getReturnedItemType, getVariableDisplayName, getVariableQName, initializeInstruction, isAssignable, isGlobal, isRequiredParam, isTunnelParam, mayContainSequenceConstructor, postValidate, prepareAttributes, setRedundantallocateLocationId, allocatePatternSlots, allocateSlots, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, compile, compileError, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getColumnNumber, getCommonChildItemType, getContainerGranularity, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getEffectiveVersion, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectName, getPreparedStylesheet, getPrincipalStylesheetModule, getProcessorVersion, getProperties, getProperty, getSchemaType, getStaticContext, getSystemId, getTypeAnnotation, getWithParamInstructions, isActionCompleted, isExcludedNamespace, isExplaining, isExtensionNamespace, isPermittedChild, issueWarning, issueWarning, isTopLevel, isXslt30Processor, makeAttributeValueTemplate, makeExpression, makeExpressionVisitor, makeNamespaceContext, makePattern, makeQName, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainFallback, mayContainParam, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processStandardAttributes, processVersionAttribute, reportAbsence, seesAvuncularVariables, setActionCompleted, setObjectName, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree, xPath10ModeIsEnabledaddAttribute, addNamespace, copy, delete, fixupInsertedNamespaces, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getInScopeNamespaceCodes, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getPrefixForURI, getRoot, getSystemId, getTypeAnnotation, getURICodeForPrefix, getURICodeForPrefixCode, getURIForPrefix, gsetAttributeCollection, initialise, isId, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, replaceStringValue, setAttributeList, setLineAndColumn, setLocation, setNameCode, setNamespaceDeclarations, setNamespaceList, setSystemId, setTypeAnnotationaddChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumberatomize, 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, setSiblingPositionclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVariableQNamegetLineNumber, getSystemIdpublic boolean isDeclaration()
isDeclaration in class StyleElementpublic SlotManager getSlotManager()
getSlotManager in interface StylesheetProcedurepublic 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 VariableDeclarationref - the variable referencepublic boolean isInstruction()
isInstruction in class StyleElementpublic void fixupReferences()
throws XPathException
fixupReferences in class StyleElementXPathExceptionpublic void validate(Declaration decl) throws XPathException
validate in class XSLGeneralVariabledecl - XPathExceptionprotected void fixupBinding(Binding binding)
binding - the Binding that represents this variable declaration in the executable code treeprotected void setReferenceCount(GeneralVariable var)
setReferenceCount in class XSLGeneralVariablevar - the variableprotected void index(Declaration decl, PrincipalStylesheetModule top) throws XPathException
StyleElementindex in class StyleElementdecl - 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 elementXPathExceptionpublic void optimize(Declaration declaration) throws XPathException
optimize in interface StylesheetProceduredeclaration - XPathExceptionpublic GeneralVariable getCompiledVariable()