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) |
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
|
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
|
boolean |
isHiddenAbstractComponent()
Ask whether this is a hidden component derived from an abstract component with no
implementation
|
boolean |
isVisibilityExplicit()
Ask whether the visibility of the component is due to an explicit visibility attribute on the component
declaration
|
java.lang.String |
listComponentReferences(java.util.Map<Component,java.lang.Integer> componentIdMap) |
static Component |
makeComponent(Actor actor,
Visibility visibility,
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,
boolean explicit)
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, StylesheetPackage containingPackage, StylesheetPackage declaringPackage)
actor
- the compiled code that implements the component, for example a Template or Functionvisibility
- the visibility of the componentcontainingPackage
- 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, boolean explicit)
visibility
- the visibility of the componentexplicit
- set to true if the visibility is an explicit attribute on the component declarationpublic Visibility getVisibility()
public boolean isVisibilityExplicit()
public boolean isHiddenAbstractComponent()
public Actor getActor()
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) throws XPathException
XPathException
public java.lang.String listComponentReferences(java.util.Map<Component,java.lang.Integer> componentIdMap)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.