net.sf.saxon.instruct

Class AttributeSet

Implemented Interfaces:
Container, InstructionInfoProvider, Serializable, SourceLocator, LocationProvider

public class AttributeSet
extends Procedure
implements InstructionInfoProvider

The compiled form of an xsl:attribute-set element in the stylesheet.

Field Summary

Fields inherited from class net.sf.saxon.instruct.Procedure

body

Constructor Summary

AttributeSet()
Create an empty attribute set

Method Summary

void
expand(XPathContext context)
Evaluate an attribute set
protected static void
expand(AttributeSet[] asets, XPathContext context)
Expand an array of attribute sets
int
getFocusDependencies()
Determine whether the attribute set has any dependencies on the focus
InstructionInfo
getInstructionInfo()
Get the InstructionInfo details about the construct.
void
setName(StructuredQName attributeSetName)
Set the name of the attribute-set
void
setStackFrameMap(SlotManager stackFrameMap)
Set the stack frame map which allocates slots to variables declared in this attribute set
void
setUseAttributeSets(AttributeSet[] useAttributeSets)
Set the attribute sets used by this attribute set

Methods inherited from class net.sf.saxon.instruct.Procedure

getBody, getColumnNumber, getExecutable, getHostLanguage, getLineNumber, getLineNumber, getLocationProvider, getPublicId, getStackFrameMap, getSystemId, getSystemId, replaceSubExpression, setBody, setExecutable, setHostLanguage, setLineNumber, setStackFrameMap, setSystemId

Constructor Details

AttributeSet

public AttributeSet()
Create an empty attribute set

Method Details

expand

public void expand(XPathContext context)
            throws XPathException
Evaluate an attribute set
Parameters:
context - the dynamic context
Throws:
XPathException - if any failure occurs

expand

protected static void expand(AttributeSet[] asets,
                             XPathContext context)
            throws XPathException
Expand an array of attribute sets
Parameters:
asets - the attribute sets to be expanded
context - the run-time context to use
Throws:
XPathException -

getFocusDependencies

public int getFocusDependencies()
Determine whether the attribute set has any dependencies on the focus
Returns:
the dependencies

getInstructionInfo

public InstructionInfo getInstructionInfo()
Get the InstructionInfo details about the construct. This information isn't used for tracing, but it is available when inspecting the context stack.
Specified by:
getInstructionInfo in interface InstructionInfoProvider

setName

public void setName(StructuredQName attributeSetName)
Set the name of the attribute-set
Parameters:
attributeSetName - the name of the attribute-set

setStackFrameMap

public void setStackFrameMap(SlotManager stackFrameMap)
Set the stack frame map which allocates slots to variables declared in this attribute set
Overrides:
setStackFrameMap in interface Procedure
Parameters:
stackFrameMap - the stack frame map

setUseAttributeSets

public void setUseAttributeSets(AttributeSet[] useAttributeSets)
Set the attribute sets used by this attribute set
Parameters:
useAttributeSets - the set of attribute sets used by this attribute set