public abstract class XFFunction extends FunctionCallWithDetails
Constructor and Description |
---|
XFFunction() |
Modifier and Type | Method and Description |
---|---|
net.sf.saxon.expr.parser.PathMap.PathMapNodeSet |
addDocToPathMap(net.sf.saxon.expr.parser.PathMap pathMap,
net.sf.saxon.expr.parser.PathMap.PathMapNodeSet pathMapNodes)
Add a representation of a doc() call or similar function to a PathMap.
|
int |
computeSpecialProperties()
Determine the special properties of this expression.
|
net.sf.saxon.expr.Expression |
copy()
Copy an expression.
|
XBRLFormulaProcessor |
getFormulaProcessor()
Gets the formula processor.
|
net.sf.saxon.type.ItemType |
getItemType()
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,
XBRLFormulaProcessor fp)
Make a xfi function call (one in the xfi namespace).
|
net.sf.saxon.expr.Expression |
optimize(net.sf.saxon.expr.parser.ExpressionVisitor visitor,
net.sf.saxon.expr.parser.ContextItemStaticInfo contextItemType)
Perform optimisation of an expression and its subexpressions.
|
void |
setFormulaProcessor(XBRLFormulaProcessor fp)
Sets the formula processor.
|
checkArguments, computeCardinality, getDetails, getErrorCodeForTypeErrors, setDetails
addExternalFunctionCallToPathMap, equals, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, operands, preEvaluate, promote, replaceOperand, setArguments, setFunctionName, toShortString, toString, typeCheck
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExpressionCompiler, getHostLanguage, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, unordered
public static net.sf.saxon.expr.FunctionCall makeSystemFunction(java.lang.String name, net.sf.saxon.expr.Expression[] arguments, XBRLFormulaProcessor fp)
name
- The local name of the function.arguments
- the arguments to the function callfp
- the fppublic void setFormulaProcessor(XBRLFormulaProcessor fp)
fp
- the new formula processorpublic XBRLFormulaProcessor getFormulaProcessor()
public net.sf.saxon.expr.Expression optimize(net.sf.saxon.expr.parser.ExpressionVisitor visitor, net.sf.saxon.expr.parser.ContextItemStaticInfo 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.FunctionCall
visitor
- 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.Expression
public net.sf.saxon.type.ItemType getItemType()
getItemType
in class net.sf.saxon.expr.Expression
public int computeSpecialProperties()
computeSpecialProperties
in class net.sf.saxon.expr.Expression
public net.sf.saxon.expr.parser.PathMap.PathMapNodeSet addDocToPathMap(net.sf.saxon.expr.parser.PathMap pathMap, net.sf.saxon.expr.parser.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.Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa