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, version
attributeList, namespaceList
nameCode, root
sequence
index, NODE_LETTER, parent
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
EMPTY_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, validateSubtree
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations
generateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemId
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, useChildrenArray
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSystemId
protected 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 StyleElement
public boolean mayContainSequenceConstructor()
mayContainSequenceConstructor
in class StyleElement
protected 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
StyleElement
prepareAttributes
in class StyleElement
XPathException
public void validate() throws XPathException
StyleElement
validate
in class StyleElement
XPathException
protected 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 templateXPathException
protected void initializeInstruction(Executable exec, GeneralVariable var) throws XPathException
XPathException
protected void setReferenceCount(GeneralVariable var)
public int getConstructType()
Location
. This method is part of the
InstructionInfo
interfacegetConstructType
in interface InstructionInfo
getConstructType
in class StyleElement