|
|||||||
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 Container
public LocationProvider getLocationProvider()
getLocationProvider
in interface Container
public 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 InstructionInfo
public int getObjectNameCode()
getObjectNameCode
in interface InstructionInfo
public String getSystemId()
getSystemId
in interface SourceLocator
getSystemId
in interface InstructionInfo
getSystemId
in interface Locator
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface InstructionInfo
getLineNumber
in interface Locator
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Locator
getSystemId()
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Locator
getLineNumber()
public String getSystemId(int locationId)
LocationProvider
getSystemId
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(int locationId)
LocationProvider
getLineNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface InstructionInfo
public Object getProperty(String name)
getProperty
in interface InstructionInfo
name
- The name of the required property
public Iterator getProperties()
getProperties
in interface InstructionInfo
public int getHostLanguage()
getHostLanguage
in interface Container
Configuration.XSLT
or Configuration.XQUERY
public boolean replaceSubExpression(Expression original, Expression replacement)
replaceSubExpression
in interface Container
original
- the original subexpressionreplacement
- the replacement subexpression
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |