|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
public abstract class SystemFunction
Abstract superclass for system-defined and user-defined functions
| Field Summary | |
|---|---|
protected int |
operation
|
| Fields inherited from class net.sf.saxon.expr.FunctionCall |
|---|
argument |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
|---|
lineNumber, NO_ARGUMENTS, staticProperties |
| Constructor Summary | |
|---|---|
SystemFunction()
|
|
| Method Summary | |
|---|---|
protected void |
addContextDocumentArgument(int pos,
String augmentedName)
Add an implicit argument referring to the context document. |
void |
checkArguments(StaticContext env)
Method called during static type checking |
int |
computeCardinality()
Determine the cardinality of the function. |
void |
display(int level,
NamePool pool)
Diagnostic print of expression structure |
protected StandardFunction.Entry |
getDetails()
Get the details |
ItemType |
getItemType()
Determine the item type of the value returned by the function |
String |
getName()
Get the name of the function. |
protected SequenceType |
getRequiredType(int arg)
Get the required type of the nth argument |
static void |
main(String[] args)
The main() method of this class is not intended to be called, it merely tells the code inspection tools in IDEA that the constructors of each function class are actual entry points |
static FunctionCall |
makeSystemFunction(String name)
Make a system function (one in the standard function namespace). |
protected void |
useContextItemAsDefault()
Set "." as the default value for the first and only argument. |
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
|---|
analyze, checkArgumentCount, getNumberOfArguments, getSubExpressions, preEvaluate, promote, setArguments, simplify, simplifyArguments |
| Methods inherited from class net.sf.saxon.expr.ComputedExpression |
|---|
computeDependencies, computeSpecialProperties, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getDependencies, getIntrinsicDependencies, getLineNumber, getSpecialProperties, iterate, markTailFunctionCalls, setLineNumber, typeError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int operation
| Constructor Detail |
|---|
public SystemFunction()
| Method Detail |
|---|
public static FunctionCall makeSystemFunction(String name)
throws XPathException
name - The local name of the function
XPathExceptionprotected StandardFunction.Entry getDetails()
public void checkArguments(StaticContext env)
throws XPathException
checkArguments in class FunctionCallXPathExceptionprotected SequenceType getRequiredType(int arg)
public String getName()
getName in class FunctionCallpublic ItemType getItemType()
public int computeCardinality()
computeCardinality in class ComputedExpression
protected final void useContextItemAsDefault()
throws XPathException
XPathException
protected final void addContextDocumentArgument(int pos,
String augmentedName)
throws XPathException
XPathException
public void display(int level,
NamePool pool)
display in interface Expressiondisplay in class FunctionCalllevel - indentation level for this expression
public static void main(String[] args)
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||