|
|||||||
| 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
| Constructor Summary | |
|---|---|
XQueryFunction()
|
|
| Method Summary | |
|---|---|
void |
checkReferences(StaticContext env)
Type-check references to this function |
UserFunction |
compile(StaticQueryContext env)
|
void |
explain(Configuration config,
PrintStream out)
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)
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()
|
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)
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 void setMemoFunction(boolean isMemoFunction)
public boolean isMemoFunction()
public UserFunction compile(StaticQueryContext env)
throws StaticError
StaticError
public void fixupReferences(StaticContext env)
throws XPathException
XPathException
public void checkReferences(StaticContext env)
throws XPathException
XPathException
public void explain(Configuration config,
PrintStream out)
config - the configuration 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)
LocationProvider
getSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(int locationId)
LocationProvider
getLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
public 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
public boolean replaceSubExpression(Expression original,
Expression replacement)
replaceSubExpression in interface Containeroriginal - the original subexpressionreplacement - the replacement subexpression
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||