public class XQueryFunction extends java.lang.Object implements InstructionInfo, Container, Declaration
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List |
arguments |
(package private) Expression |
body |
(package private) int |
columnNumber |
(package private) int |
lineNumber |
(package private) boolean |
memoFunction |
(package private) NamespaceResolver |
namespaceResolver |
(package private) java.util.List |
references |
(package private) SequenceType |
resultType |
(package private) StaticContext |
staticContext |
(package private) java.lang.String |
systemId |
| Constructor and Description |
|---|
XQueryFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkReferences(StaticContext env)
Type-check references to this function
|
UserFunction |
compile(StaticQueryContext env) |
void |
explain(Configuration config)
Produce diagnostic output showing the compiled and optimized expression tree for a function
|
void |
fixupReferences(StaticContext env)
Fix up references to this function
|
SequenceType[] |
getArgumentTypes() |
int |
getColumnNumber()
Return the column number
|
int |
getConstructType()
Get the type of construct.
|
Executable |
getExecutable()
Get the Executable (representing a complete stylesheet or query) of which this Container forms part
|
java.lang.String |
getFunctionDisplayName(NamePool pool) |
int |
getFunctionFingerprint() |
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.
|
int |
getLineNumber(int locationId)
Get the line number within the document or module containing a particular location
|
LocationProvider |
getLocationProvider()
Get the LocationProvider allowing location identifiers to be resolved.
|
int |
getNameCode() |
NamespaceResolver |
getNamespaceResolver()
Get the namespace context of the instruction.
|
int |
getNumberOfArguments() |
int |
getObjectNameCode()
Get a name identifying the object of the expression, for example a function name, template name,
variable name, key name, element name, etc.
|
UserFunctionParameter[] |
getParameterDefinitions() |
java.util.Iterator |
getProperties()
Get an iterator over all the properties available.
|
java.lang.Object |
getProperty(java.lang.String name)
Get the value of a particular property of the instruction.
|
java.lang.String |
getPublicId()
Return the public identifier for the current document event.
|
SequenceType |
getResultType() |
StaticContext |
getStaticContext() |
java.lang.String |
getSystemId()
Get the system identifier (URI) of the source module containing
the instruction.
|
java.lang.String |
getSystemId(int locationId)
Get the URI of the document or module containing a particular location
|
UserFunction |
getUserFunction()
Get the callable compiled function contained within this XQueryFunction definition.
|
boolean |
isMemoFunction() |
void |
registerReference(UserFunctionCall ufc) |
boolean |
replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression
|
void |
setExecutable(Executable exec) |
void |
setMemoFunction(boolean isMemoFunction) |
void |
setNameCode(int nameCode) |
java.util.List arguments
SequenceType resultType
Expression body
java.util.List references
int lineNumber
int columnNumber
java.lang.String systemId
boolean memoFunction
NamespaceResolver namespaceResolver
StaticContext staticContext
public void setNameCode(int nameCode)
public int getNameCode()
public java.lang.String getFunctionDisplayName(NamePool pool)
public int getFunctionFingerprint()
public SequenceType getResultType()
public void setExecutable(Executable exec)
public Executable getExecutable()
ContainergetExecutable in interface Containerpublic LocationProvider getLocationProvider()
getLocationProvider in interface Containerpublic StaticContext getStaticContext()
public SequenceType[] getArgumentTypes()
public UserFunctionParameter[] getParameterDefinitions()
public int getNumberOfArguments()
public void registerReference(UserFunctionCall ufc)
public void setMemoFunction(boolean isMemoFunction)
public boolean isMemoFunction()
public UserFunction compile(StaticQueryContext env) throws StaticError
StaticErrorpublic void fixupReferences(StaticContext env) throws XPathException
XPathExceptionpublic void checkReferences(StaticContext env) throws XPathException
XPathExceptionpublic void explain(Configuration config)
config - the configuration to be usedpublic UserFunction getUserFunction()
public int getConstructType()
Location.getConstructType in interface InstructionInfopublic int getObjectNameCode()
getObjectNameCode in interface InstructionInfopublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface InstructionInfogetSystemId in interface org.xml.sax.Locatorpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface InstructionInfogetLineNumber in interface org.xml.sax.Locatorpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.transform.SourceLocatorgetPublicId in interface org.xml.sax.LocatorgetSystemId()public int getColumnNumber()
getColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in interface org.xml.sax.LocatorgetLineNumber()public java.lang.String getSystemId(int locationId)
LocationProvidergetSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(int locationId)
LocationProvidergetLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface InstructionInfopublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface InstructionInfoname - The name of the required propertypublic java.util.Iterator getProperties()
getProperties in interface InstructionInfopublic int getHostLanguage()
getHostLanguage in interface ContainerConfiguration.XSLT or Configuration.XQUERYpublic boolean replaceSubExpression(Expression original, Expression replacement)
replaceSubExpression in interface Containeroriginal - the original subexpressionreplacement - the replacement subexpression