|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.query.XQueryFunction
| Constructor Summary | |
XQueryFunction()
|
|
| Method Summary | |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XQueryFunction()
| Method Detail |
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()
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
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 InstructionInfopublic int getLineNumber()
getLineNumber in interface InstructionInfopublic java.lang.String getPublicId()
getPublicId in interface org.xml.sax.LocatorgetSystemId()public int getColumnNumber()
getColumnNumber in interface org.xml.sax.LocatorgetLineNumber()public java.lang.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 java.lang.Object getProperty(java.lang.String name)
getProperty in interface InstructionInfoname - The name of the required property
public java.util.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 | |||||||||