public abstract class ComponentBody extends Object implements Container, InstructionInfo
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 |
|---|
ComponentBody() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateAllBindingSlots(StylesheetPackage pack)
Allocate slot numbers to all the external component references in this procedure
|
protected static void |
allocateBindingSlotsRecursive(StylesheetPackage pack,
ComponentBody p,
Expression exp) |
Expression |
getBody() |
int |
getColumnNumber() |
abstract int |
getComponentKind()
Get the kind of component that this represents, using integer constants such as
StandardNames.XSL_FUNCTION |
Configuration |
getConfiguration()
Get the Configuration to which this Container belongs
|
int |
getContainerGranularity()
Get the granularity of the container.
|
Component |
getDeclaringComponent() |
int |
getHostLanguage()
Get the host language (XSLT, XQuery, XPath) used to implement the code in this container
|
int |
getLineNumber()
Get the line number of the instruction in the source stylesheet module.
|
LocationProvider |
getLocationProvider()
Get the LocationProvider allowing location identifiers to be resolved.
|
PackageData |
getPackageData()
Get basic data about the unit of compilation (XQuery module, XSLT package) to which this
container belongs
|
Iterator<String> |
getProperties()
Get an iterator over all the properties available.
|
Object |
getProperty(String name)
Get the value of a particular property of the instruction.
|
String |
getPublicId() |
SlotManager |
getStackFrameMap() |
String |
getSystemId()
Get the system identifier (URI) of the source stylesheet or query module containing
the instruction.
|
void |
makeDeclaringComponent(Visibility visibility,
StylesheetPackage declaringPackage) |
void |
setBody(Expression body) |
void |
setHostLanguage(int language) |
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 |
setStackFrameMap(SlotManager map) |
void |
setSystemId(String systemId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConstructType, getObjectNameprotected Expression body
public void setPackageData(PackageData packageData)
packageData - information about the containing packagepublic PackageData getPackageData()
getPackageData in interface Containerpublic int getContainerGranularity()
getContainerGranularity in interface Containerpublic void makeDeclaringComponent(Visibility visibility, StylesheetPackage declaringPackage)
public Component getDeclaringComponent()
public void allocateAllBindingSlots(StylesheetPackage pack)
pack - the containing packageprotected static void allocateBindingSlotsRecursive(StylesheetPackage pack, ComponentBody p, Expression exp)
public Configuration getConfiguration()
getConfiguration in interface Containerpublic void setBody(Expression body)
public void setHostLanguage(int language)
public int getHostLanguage()
ContainergetHostLanguage in interface ContainerConfiguration.XSLT or Configuration.XQUERYpublic final Expression getBody()
public void setStackFrameMap(SlotManager map)
public SlotManager getStackFrameMap()
public LocationProvider getLocationProvider()
public void setLineNumber(int lineNumber)
public void setSystemId(String systemId)
public int getLineNumber()
InstructionInfogetLineNumber in interface SourceLocatorgetLineNumber in interface InstructionInfopublic String getSystemId()
InstructionInfogetSystemId in interface SourceLocatorgetSystemId in interface InstructionInfopublic int getColumnNumber()
getColumnNumber in interface SourceLocatorpublic String getPublicId()
getPublicId in interface SourceLocatorpublic Object getProperty(String name)
InstructionInfogetProperty in interface InstructionInfoname - The name of the required propertypublic Iterator<String> getProperties()
getProperties in interface InstructionInfopublic abstract int getComponentKind()
StandardNames.XSL_FUNCTIONCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.