|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
com.ihr.xbrl.om.formula.functions.XFFunction
public abstract class XFFunction
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.Expression |
|---|
EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, PROCESS_METHOD, PUSH_SELECTION, WATCH_METHOD |
| Constructor Summary | |
|---|---|
XFFunction()
|
|
| Method Summary | |
|---|---|
net.sf.saxon.expr.PathMap.PathMapNodeSet |
addDocToPathMap(net.sf.saxon.expr.PathMap pathMap,
net.sf.saxon.expr.PathMap.PathMapNodeSet pathMapNodes)
Add a representation of a doc() call or similar function to a PathMap. |
void |
checkArguments(net.sf.saxon.expr.ExpressionVisitor visitor)
Method called during static type checking |
int |
computeCardinality()
Determine the cardinality of the function. |
int |
computeSpecialProperties()
Determine the special properties of this expression. |
net.sf.saxon.expr.Expression |
copy()
Copy an expression. |
net.sf.saxon.functions.StandardFunction.Entry |
getDetails()
Get the details of the function signature |
java.lang.String |
getErrorCodeForTypeErrors()
Return the error code to be used for type errors. |
XBRLFormulaProcessor |
getFormulaProcessor()
|
net.sf.saxon.type.ItemType |
getItemType(net.sf.saxon.type.TypeHierarchy th)
Determine the item type of the value returned by the function |
static net.sf.saxon.expr.FunctionCall |
makeSystemFunction(java.lang.String name,
net.sf.saxon.expr.Expression[] arguments)
Make a xfi function call (one in the xfi namespace). |
net.sf.saxon.expr.Expression |
optimize(net.sf.saxon.expr.ExpressionVisitor visitor,
net.sf.saxon.type.ItemType contextItemType)
Perform optimisation of an expression and its subexpressions. |
void |
setDetails(net.sf.saxon.functions.StandardFunction.Entry entry)
Set the details of this type of function |
void |
setFormulaProcessor(XBRLFormulaProcessor fp)
|
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
|---|
addExternalFunctionCallToPathMap, equals, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, toString, typeCheck |
| Methods inherited from class net.sf.saxon.expr.Expression |
|---|
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, iterateSameFocusSubExpressions, markTailFunctionCalls, process, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XFFunction()
| Method Detail |
|---|
public static net.sf.saxon.expr.FunctionCall makeSystemFunction(java.lang.String name,
net.sf.saxon.expr.Expression[] arguments)
name - The local name of the function.arguments - the arguments to the function call
public void setDetails(net.sf.saxon.functions.StandardFunction.Entry entry)
entry - information giving details of the function signaturepublic void setFormulaProcessor(XBRLFormulaProcessor fp)
public XBRLFormulaProcessor getFormulaProcessor()
public net.sf.saxon.functions.StandardFunction.Entry getDetails()
public void checkArguments(net.sf.saxon.expr.ExpressionVisitor visitor)
throws net.sf.saxon.trans.XPathException
checkArguments in class net.sf.saxon.expr.FunctionCallnet.sf.saxon.trans.XPathException
public net.sf.saxon.expr.Expression optimize(net.sf.saxon.expr.ExpressionVisitor visitor,
net.sf.saxon.type.ItemType contextItemType)
throws net.sf.saxon.trans.XPathException
This method is called after all references to functions and variables have been resolved to the declaration of the function or variable, and after all type checking has been done.
optimize in class net.sf.saxon.expr.FunctionCallvisitor - an expression visitorcontextItemType - the static type of "." at the point where this expression is invoked.
The parameter is set to null if it is known statically that the context item will be undefined.
If the type of the context item is not known statically, the argument is set to
Type.ITEM_TYPE
net.sf.saxon.trans.XPathException - if an error is discovered during this phase
(typically a type error)public net.sf.saxon.expr.Expression copy()
copy in class net.sf.saxon.expr.Expressionpublic java.lang.String getErrorCodeForTypeErrors()
public net.sf.saxon.type.ItemType getItemType(net.sf.saxon.type.TypeHierarchy th)
getItemType in class net.sf.saxon.expr.Expressionth - the type hierarchy cachepublic int computeCardinality()
computeCardinality in class net.sf.saxon.expr.Expressionpublic int computeSpecialProperties()
computeSpecialProperties in class net.sf.saxon.expr.Expression
public net.sf.saxon.expr.PathMap.PathMapNodeSet addDocToPathMap(net.sf.saxon.expr.PathMap pathMap,
net.sf.saxon.expr.PathMap.PathMapNodeSet pathMapNodes)
pathMap - the PathMap to which the expression should be addedpathMapNodes - the node in the PathMap representing the focus at the point where this expression
is called. Set to null if this expression appears at the top level.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||