|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.query.XQueryFunction
public class XQueryFunction
| Field Summary | |
|---|---|
(package private) List |
arguments
|
(package private) Expression |
body
|
(package private) int |
columnNumber
|
(package private) int |
lineNumber
|
(package private) NamespaceResolver |
namespaceResolver
|
(package private) List |
references
|
(package private) SequenceType |
resultType
|
(package private) String |
systemId
|
| Constructor Summary | |
|---|---|
XQueryFunction()
|
|
| Method Summary | |
|---|---|
void |
checkReferences(StaticContext env)
Type-check references to this function |
UserFunction |
compile(StaticQueryContext env)
|
void |
explain(NamePool pool)
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 |
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)
|
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()
|
Iterator |
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()
Return the public identifier for the current document event. |
SequenceType |
getResultType()
|
StaticContext |
getStaticContext()
|
String |
getSystemId()
Get the system identifier (URI) of the source module containing the instruction. |
String |
getSystemId(int locationId)
|
UserFunction |
getUserFunction()
Get the callable compiled function contained within this XQueryFunction definition. |
void |
registerReference(UserFunctionCall ufc)
|
void |
setExecutable(Executable exec)
|
void |
setNameCode(int nameCode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
List arguments
SequenceType resultType
Expression body
List references
int lineNumber
int columnNumber
String systemId
NamespaceResolver namespaceResolver
| Constructor Detail |
|---|
public XQueryFunction()
| Method Detail |
|---|
public void setNameCode(int nameCode)
public int getNameCode()
public String getFunctionDisplayName(NamePool pool)
public int getFunctionFingerprint()
public SequenceType getResultType()
public void setExecutable(Executable exec)
public Executable getExecutable()
Container
getExecutable 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 UserFunction compile(StaticQueryContext env)
throws StaticError
StaticError
public void fixupReferences(StaticContext env)
throws XPathException
XPathException
public void checkReferences(StaticContext env)
throws XPathException
XPathExceptionpublic void explain(NamePool pool)
pool - the namepool to be usedpublic UserFunction getUserFunction()
public int getConstructType()
Location.
getConstructType in interface InstructionInfopublic int getObjectNameCode()
getObjectNameCode in interface InstructionInfopublic String getSystemId()
getSystemId in interface SourceLocatorgetSystemId in interface InstructionInfogetSystemId in interface Locatorpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface InstructionInfogetLineNumber in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface LocatorgetSystemId()public int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocatorgetLineNumber()public String getSystemId(int locationId)
getSystemId in interface LocationProviderpublic int getLineNumber(int locationId)
getLineNumber in interface LocationProviderpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface InstructionInfopublic Object getProperty(String name)
getProperty in interface InstructionInfoname - The name of the required property
public Iterator getProperties()
getProperties in interface InstructionInfopublic int getHostLanguage()
getHostLanguage in interface ContainerConfiguration.XSLT or Configuration.XQUERY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||