net.sf.saxon.instruct
Class AttributeSet

java.lang.Object
  extended by net.sf.saxon.instruct.Procedure
      extended by net.sf.saxon.instruct.AttributeSet
All Implemented Interfaces:
Serializable, SourceLocator, LocationProvider, Container, InstructionInfoProvider

public class AttributeSet
extends Procedure
implements InstructionInfoProvider

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

See Also:
Serialized Form

Constructor Summary
AttributeSet()
          Create an empty attribute set
 
Method Summary
 void expand(XPathContext context)
          Evaluate an attribute set
 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, setSystemId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSet

public AttributeSet()
Create an empty attribute set

Method Detail

setName

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

Parameters:
attributeSetName - the name of the attribute-set

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

setStackFrameMap

public void setStackFrameMap(SlotManager stackFrameMap)
Set the stack frame map which allocates slots to variables declared in this attribute set

Overrides:
setStackFrameMap in class Procedure
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

public void expand(XPathContext context)
            throws XPathException
Evaluate an attribute set

Parameters:
context - the dynamic context
Throws:
XPathException - if any failure occurs

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


Copyright (C) Michael H. Kay. All rights reserved.