public abstract class Actor extends java.lang.Object implements ExpressionOwner, Location
It is assumed that type-checking, of both the arguments and the results, has been handled at compile time. That is, the expression supplied as the body of the function must be wrapped in code to check or convert the result to the required type, and calls on the function must be wrapped at compile time to check or convert the supplied arguments.
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
body |
| Constructor and Description |
|---|
Actor() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateAllBindingSlots(StylesheetPackage pack)
Allocate slot numbers to all the external component references in this component
|
static void |
allocateBindingSlotsRecursive(StylesheetPackage pack,
Actor p,
Expression exp,
java.util.List<ComponentBinding> bindings) |
abstract void |
export(ExpressionPresenter presenter)
Export expression structure.
|
Expression |
getBody() |
Expression |
getChildExpression() |
int |
getColumnNumber()
Get the column number.
|
StructuredQName |
getComponentName()
Get the name of the component as a QName
|
Visibility |
getDeclaredVisibility()
Get the visibility of the component as defined using its actual @visibility attribute
|
Component |
getDeclaringComponent() |
int |
getLineNumber()
Get the line number.
|
Location |
getLocation() |
PackageData |
getPackageData()
Get basic data about the unit of compilation (XQuery module, XSLT package) to which this
container belongs
|
java.util.Iterator<java.lang.String> |
getProperties()
Get an iterator over all the properties available.
|
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getPublicId()
Get the Public ID
|
RetainedStaticContext |
getRetainedStaticContext() |
SlotManager |
getStackFrameMap() |
abstract SymbolicName |
getSymbolicName()
Get the symbolic name of the component
|
java.lang.String |
getSystemId()
Get the system ID.
|
java.lang.String |
getTracingTag()
Get a string used to identify this kind of component when used in tracing output
|
boolean |
isExportable() |
Component |
makeDeclaringComponent(Visibility visibility,
StylesheetPackage declaringPackage) |
Component |
obtainDeclaringComponent(StyleElement declaration)
Return the declaring component, creating it if it does not already exist.
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
void |
setBody(Expression body) |
void |
setChildExpression(Expression expr) |
void |
setColumnNumber(int columnNumber) |
void |
setDeclaredVisibility(Visibility visibility)
Set the visibility of the component as defined using its actual @visibility attribute
|
void |
setDeclaringComponent(Component comp) |
void |
setLineNumber(int lineNumber) |
void |
setPackageData(PackageData packageData)
Set basic data about the unit of compilation (XQuery module, XSLT package) to which this
procedure belongs
|
void |
setRetainedStaticContext(RetainedStaticContext rsc) |
void |
setStackFrameMap(SlotManager map) |
void |
setSystemId(java.lang.String systemId) |
protected Expression body
public abstract SymbolicName getSymbolicName()
public StructuredQName getComponentName()
public java.lang.String getTracingTag()
public void setPackageData(PackageData packageData)
packageData - information about the containing packagepublic PackageData getPackageData()
public Component makeDeclaringComponent(Visibility visibility, StylesheetPackage declaringPackage)
public Component obtainDeclaringComponent(StyleElement declaration)
declaration - The source element in the stylesheet corresponding to the componentpublic Component getDeclaringComponent()
public void setDeclaringComponent(Component comp)
public void allocateAllBindingSlots(StylesheetPackage pack)
pack - the containing packagepublic static void allocateBindingSlotsRecursive(StylesheetPackage pack, Actor p, Expression exp, java.util.List<ComponentBinding> bindings)
public void setBody(Expression body)
public final Expression getBody()
public final Expression getChildExpression()
getChildExpression in interface ExpressionOwnerpublic void setStackFrameMap(SlotManager map)
public SlotManager getStackFrameMap()
public void setLineNumber(int lineNumber)
public void setColumnNumber(int columnNumber)
public void setSystemId(java.lang.String systemId)
public Location getLocation()
public int getLineNumber()
LocationgetLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface org.xml.sax.Locatorpublic java.lang.String getSystemId()
LocationThe system identifier of a node is in general not the same as its base URI. The base URI is affected by xml:base attributes; the system identifier is not.
getSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface LocationgetSystemId in interface org.xml.sax.Locatorpublic int getColumnNumber()
LocationgetColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface org.xml.sax.Locatorpublic java.lang.String getPublicId()
LocationgetPublicId in interface javax.xml.transform.SourceLocatorgetPublicId in interface LocationgetPublicId in interface org.xml.sax.Locatorpublic Location saveLocation()
LocationsaveLocation in interface Locationpublic void setRetainedStaticContext(RetainedStaticContext rsc)
public RetainedStaticContext getRetainedStaticContext()
public java.lang.Object getProperty(java.lang.String name)
public void setDeclaredVisibility(Visibility visibility)
visibility - the actual declared visibility; null if the visibility attribute is absentpublic Visibility getDeclaredVisibility()
public java.util.Iterator<java.lang.String> getProperties()
public abstract void export(ExpressionPresenter presenter) throws XPathException
presenter - the expression presenter used to generate the XML representation of the structureXPathExceptionpublic boolean isExportable()
public void setChildExpression(Expression expr)
setChildExpression in interface ExpressionOwnerCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.