Package net.sf.saxon.instruct
Class AttributeSet
java.lang.Object
net.sf.saxon.instruct.Procedure
net.sf.saxon.instruct.AttributeSet
- All Implemented Interfaces:
Serializable,SourceLocator,LocationProvider,SaxonLocator,Container,InstructionInfo,Locator
The compiled form of an xsl:attribute-set element in the stylesheet.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexpand(XPathContext context) Evaluate an attribute setprotected static voidexpand(AttributeSet[] asets, XPathContext context) Expand an array of attribute setsintGet the type of construct.intDetermine whether the attribute set has any dependencies on the focusGet a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc.voidsetName(StructuredQName attributeSetName) Set the name of the attribute-setvoidsetStackFrameMap(SlotManager stackFrameMap) Set the stack frame map which allocates slots to variables declared in this attribute setvoidsetUseAttributeSets(AttributeSet[] useAttributeSets) Set the attribute sets used by this attribute setMethods inherited from class net.sf.saxon.instruct.Procedure
getBody, getColumnNumber, getColumnNumber, getExecutable, getHostLanguage, getLineNumber, getLineNumber, getLocationProvider, getProperties, getProperty, getPublicId, getStackFrameMap, getSystemId, getSystemId, replaceSubExpression, setBody, setExecutable, setHostLanguage, setLineNumber, setSystemId
-
Constructor Details
-
AttributeSet
public AttributeSet()Create an empty attribute set
-
-
Method Details
-
setName
Set the name of the attribute-set- Parameters:
attributeSetName- the name of the attribute-set
-
setUseAttributeSets
Set the attribute sets used by this attribute set- Parameters:
useAttributeSets- the set of attribute sets used by this attribute set
-
setStackFrameMap
Set the stack frame map which allocates slots to variables declared in this attribute set- Overrides:
setStackFrameMapin classProcedure- Parameters:
stackFrameMap- the stack frame map
-
getFocusDependencies
public int getFocusDependencies()Determine whether the attribute set has any dependencies on the focus- Returns:
- the dependencies
-
expand
Evaluate an attribute set- Parameters:
context- the dynamic context- Throws:
XPathException- if any failure occurs
-
getConstructType
public int getConstructType()Get the type of construct. This will either be the fingerprint of a standard XSLT instruction name (values inStandardNames: all less than 1024) or it will be a constant in classLocation.- Returns:
- an integer identifying the kind of construct
-
getObjectName
Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically.- Returns:
- the QName of the object declared or manipulated by this instruction or expression
-
expand
Expand an array of attribute sets- Parameters:
asets- the attribute sets to be expandedcontext- the run-time context to use- Throws:
XPathException
-