public abstract class XSLGeneralVariable extends StyleElement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
assignable |
protected java.lang.String |
constantText |
protected boolean |
global |
protected boolean |
implicitlyRequiredParam |
protected boolean |
redundant |
protected boolean |
requiredParam |
protected SequenceType |
requiredType |
protected Expression |
select |
protected SlotManager |
slotManager |
protected boolean |
tunnel |
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, versionattributeList, namespaceListnameCode, rootsequenceindex, NODE_LETTER, parentALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_VALUE_ARRAY| Constructor and Description |
|---|
XSLGeneralVariable() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowsAsAttribute() |
protected boolean |
allowsRequired() |
protected boolean |
allowsTunnelAttribute() |
protected boolean |
allowsValue() |
protected void |
checkAgainstRequiredType(SequenceType required)
Check the supplied select expression against the required type.
|
int |
getConstructType()
Get the type of construct.
|
protected ItemType |
getReturnedItemType()
Determine the type of item returned by this instruction (only relevant if
it is an instruction).
|
int |
getVariableFingerprint()
Get the fingerprint of the variable name
|
java.lang.String |
getVariableName()
Get the display name of the variable.
|
protected void |
initializeInstruction(Executable exec,
GeneralVariable var)
Initialize - common code called from the compile() method of all subclasses
|
boolean |
isAssignable()
Test whether it is permitted to assign to the variable using the saxon:assign
extension element.
|
boolean |
isGlobal() |
boolean |
isRequiredParam() |
boolean |
isTunnelParam() |
boolean |
mayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a template-body
|
void |
prepareAttributes()
Set the attribute list for the element.
|
void |
setRedundant()
Mark this global variable as redundant.
|
protected void |
setReferenceCount(GeneralVariable var) |
void |
validate()
Check that the stylesheet element is valid.
|
allocateLocationId, allocateSlots, backwardsCompatibleModeIsEnabled, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, checkWithinTemplate, compile, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, fixupReferences, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getCommonChildItemType, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectFingerprint, getObjectNameCode, getPrecedence, getPreparedStylesheet, getPrincipalStylesheet, getProperties, getProperty, getSchemaType, getStaticContext, getStylesheetFunction, getSystemId, getTargetNamePool, getTypeAnnotation, getVersion, getWithParamInstructions, isExcludedNamespace, isExplaining, isExtensionNamespace, isInstruction, isPermittedChild, issueWarning, issueWarning, isTopLevel, makeAttributeValueTemplate, makeExpression, makeNameCode, makeNamespaceContext, makePattern, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, mayContainFallback, postValidate, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processVersionAttribute, replaceSubExpression, reportAbsence, setLineNumber, setObjectNameCode, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtreecopy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarationsgenerateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemIdaddChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArrayatomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxisclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSystemIdprotected Expression select
protected SequenceType requiredType
protected java.lang.String constantText
protected boolean global
protected SlotManager slotManager
protected boolean assignable
protected boolean redundant
protected boolean requiredParam
protected boolean implicitlyRequiredParam
protected boolean tunnel
protected ItemType getReturnedItemType()
getReturnedItemType in class StyleElementpublic boolean mayContainSequenceConstructor()
mayContainSequenceConstructor in class StyleElementprotected boolean allowsAsAttribute()
protected boolean allowsTunnelAttribute()
protected boolean allowsValue()
protected boolean allowsRequired()
public boolean isAssignable()
public boolean isTunnelParam()
public boolean isRequiredParam()
public boolean isGlobal()
public java.lang.String getVariableName()
public void setRedundant()
public int getVariableFingerprint()
public void prepareAttributes()
throws XPathException
StyleElementprepareAttributes in class StyleElementXPathExceptionpublic void validate()
throws XPathException
StyleElementvalidate in class StyleElementXPathExceptionprotected void checkAgainstRequiredType(SequenceType required) throws XPathException
required - The type required by the variable declaration, or in the case
of xsl:with-param, the signature of the called templateXPathExceptionprotected void initializeInstruction(Executable exec, GeneralVariable var) throws XPathException
XPathExceptionprotected void setReferenceCount(GeneralVariable var)
public int getConstructType()
Location. This method is part of the
InstructionInfo interfacegetConstructType in interface InstructionInfogetConstructType in class StyleElement