public class Component
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Component.M |
Modifier and Type | Method and Description |
---|---|
void |
export(ExpressionPresenter out,
java.util.Map<Component,java.lang.Integer> componentIdMap,
java.util.Map<StylesheetPackage,java.lang.Integer> packageIdMap) |
Actor |
getActor()
Get the actor (for example a compiled template, function, or variable) that is executed
when this component is called
|
Component |
getBaseComponent()
Get the component from which this one is derived
|
java.util.List<ComponentBinding> |
getComponentBindings()
Get the component's binding vector; that is the list of external references to other components
|
int |
getComponentKind() |
StylesheetPackage |
getContainingPackage()
Get the containing package of this component
|
StylesheetPackage |
getDeclaringPackage()
Get the declaring package of this component
|
Visibility |
getVisibility()
Get the visibility of the component
|
VisibilityProvenance |
getVisibilityProvenance()
Determine whether the visibility of the component is due to an explicit visibility attribute
on the component declaration, or whether it was inferred, or came from an xsl:expose or xsl:accept
declaration
|
boolean |
isHiddenAbstractComponent()
Ask whether this is a hidden component derived from an abstract component with no
implementation
|
java.lang.String |
listComponentReferences(java.util.Map<Component,java.lang.Integer> componentIdMap) |
static Component |
makeComponent(Actor actor,
Visibility visibility,
VisibilityProvenance provenance,
StylesheetPackage containingPackage,
StylesheetPackage declaringPackage)
Create a component
|
void |
setBaseComponent(Component original)
Set the component from which this one is derived
|
void |
setComponentBindings(java.util.List<ComponentBinding> bindings)
Set the component's binding vector; that is the list of external references to other components
|
void |
setVisibility(Visibility visibility,
VisibilityProvenance provenance)
Set the visibility of the component, and say whether it is explicit or defaulted
|
protected Actor actor
public static Component makeComponent(Actor actor, Visibility visibility, VisibilityProvenance provenance, StylesheetPackage containingPackage, StylesheetPackage declaringPackage)
actor
- the compiled code that implements the component, for example a Template or Functionvisibility
- the visibility of the componentprovenance
- indicates where the visibility property came fromcontainingPackage
- the package to which this component belongsdeclaringPackage
- the package in which the original declaration of the component appearspublic java.util.List<ComponentBinding> getComponentBindings()
public void setComponentBindings(java.util.List<ComponentBinding> bindings)
bindings
- the binding vector, a list of component bindings. These are identified by a binding
slot number held with the individual instruction (such as a call-template instruction or a global
variable reference) that contains the external component reference.public void setVisibility(Visibility visibility, VisibilityProvenance provenance)
visibility
- the visibility of the componentprovenance
- indicates where the visibility property came frompublic Visibility getVisibility()
public VisibilityProvenance getVisibilityProvenance()
public boolean isHiddenAbstractComponent()
public Actor getActor()
public int getComponentKind()
public StylesheetPackage getDeclaringPackage()
public StylesheetPackage getContainingPackage()
public Component getBaseComponent()
public void setBaseComponent(Component original)
original
- the component from which this one is derived. This is set when the component appears in the
package as a result of xsl:use-package; a component C in the used package is modified to create a
component D in the using package, and D.getBaseComponent() returns C. The value will be null
in the case of a component whose declaring package is the same as its containing package, that is,
an "original" component (including an overriding component)public void export(ExpressionPresenter out, java.util.Map<Component,java.lang.Integer> componentIdMap, java.util.Map<StylesheetPackage,java.lang.Integer> packageIdMap) throws XPathException
XPathException
public java.lang.String listComponentReferences(java.util.Map<Component,java.lang.Integer> componentIdMap)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.