Package net.sf.saxon.expr.instruct
Class AttributeSet
java.lang.Object
net.sf.saxon.expr.instruct.Actor
net.sf.saxon.expr.instruct.AttributeSet
- All Implemented Interfaces:
SourceLocator,ExpressionOwner,Location,InstructionInfo,Locator
The compiled form of an xsl:attribute-set element in the stylesheet.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexpand(XPathContext context) Evaluate an attribute setvoidexport(ExpressionPresenter presenter) Diagnostic print of expression structure.intGet the kind of component that this represents, using integer constants such asStandardNames.XSL_FUNCTIONintGet 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.Get the symbolic name of the componentbooleanAsk whether this attribute set is declared to be streamablevoidsetDeclaredStreamable(boolean value) Say whether this attribute set is declared to be streamablevoidsetName(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 setMethods inherited from class net.sf.saxon.expr.instruct.Actor
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getColumnNumber, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getProperties, getProperty, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, isExportable, makeDeclaringComponent, obtainDeclaringComponent, saveLocation, setBody, setChildExpression, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setSystemId
-
Field Details
-
attributeSetName
StructuredQName attributeSetName
-
-
Constructor Details
-
AttributeSet
public AttributeSet()Create an empty attribute set
-
-
Method Details
-
getSymbolicName
Get the symbolic name of the component- Specified by:
getSymbolicNamein classActor- Returns:
- the symbolic name
-
setName
Set the name of the attribute-set- Parameters:
attributeSetName- the name of the attribute-set
-
setDeclaredStreamable
public void setDeclaredStreamable(boolean value) Say whether this attribute set is declared to be streamable- Parameters:
value- true if the attribute streamable="yes" is present
-
isDeclaredStreamable
public boolean isDeclaredStreamable()Ask whether this attribute set is declared to be streamable- Returns:
- true if the attribute streamable="yes" is present
-
setStackFrameMap
Set the stack frame map which allocates slots to variables declared in this attribute set- Overrides:
setStackFrameMapin classActor- 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 classLocationKind.- 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
-
getComponentKind
public int getComponentKind()Description copied from class:ActorGet the kind of component that this represents, using integer constants such asStandardNames.XSL_FUNCTION- Specified by:
getComponentKindin classActor
-
export
Diagnostic print of expression structure. The abstract expression tree is written to the supplied outputstream.- Specified by:
exportin classActor- Parameters:
presenter- the expression presenter used to display the structure- Throws:
XPathException
-