|
||||||||||
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.tree.ElementWithAttributes
net.sf.saxon.style.StyleElement
net.sf.saxon.style.XSLGeneralVariable
This class defines common behaviour across xsl:variable, xsl:param, and xsl:with-param
Field Summary | |
protected boolean |
assignable
|
protected java.lang.String |
constantText
|
protected boolean |
global
|
protected boolean |
redundant
|
protected boolean |
requiredParam
|
protected SequenceType |
requiredType
|
protected Expression |
select
|
protected SlotManager |
slotManager
|
protected boolean |
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.ElementWithAttributes |
attributeList, namespaceList |
Fields inherited from class net.sf.saxon.tree.ElementImpl |
nameCode, root, 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, LOCAL_NAMESPACES, NO_NAMESPACES |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
EMPTY_VALUE_ARRAY |
Constructor Summary | |
XSLGeneralVariable()
|
Method Summary | |
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. |
Methods inherited from class net.sf.saxon.tree.ElementWithAttributes |
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations |
Methods inherited from class net.sf.saxon.tree.ElementImpl |
addChild, compact, enumerateChildren, generateId, getBaseURI, getDocumentRoot, getFirstChild, getLastChild, getNameCode, getNodeKind, getNthChild, getRoot, getSequenceNumber, getStringValue, getStringValueCS, getSystemId, hasChildNodes, setNameCode, setSystemId, useChildrenArray |
Methods inherited from class net.sf.saxon.tree.NodeImpl |
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.Locator |
getColumnNumber, getPublicId, getSystemId |
Methods inherited from interface javax.xml.transform.SourceLocator |
getColumnNumber, getPublicId, getSystemId |
Methods inherited from interface net.sf.saxon.trace.InstructionInfo |
getSystemId |
Field Detail |
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 tunnel
Constructor Detail |
public XSLGeneralVariable()
Method Detail |
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 template
XPathException
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
interface
getConstructType
in interface InstructionInfo
getConstructType
in class StyleElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |