java.io.Serializable
, javax.xml.transform.SourceLocator
, Container
, Expression
, InstructionInfoProvider
Adjust
, Aggregate
, Available
, BaseURI
, BooleanFn
, CodepointEqual
, CollatingFunction
, Collection
, CompileTimeFunction
, Component
, Concat
, Current
, CurrentDateTime
, CurrentGroup
, DateTimeConstructor
, Doc
, Document
, Error
, EscapeURI
, Evaluate
, Existence
, ForceCase
, FormatDate
, FormatNumber2
, Id
, Idref
, InScopePrefixes
, Insert
, KeyFn
, Lang
, Last
, Matches
, NamePart
, NamespaceForPrefix
, Nilled
, NormalizeSpace
, NormalizeUnicode
, NumberFn
, Parse
, Position
, QNameFn
, RegexGroup
, Remove
, Replace
, ResolveQName
, ResolveURI
, Root
, Rounding
, Serialize
, StringFn
, StringJoin
, StringLength
, Subsequence
, Substring
, SystemProperty
, Tokenize
, Trace
, Translate
, TreatFn
, Unicode
, UnparsedEntity
, UnparsedText
public abstract class SystemFunction extends FunctionCall
Modifier and Type | Field | Description |
---|---|---|
protected int |
operation |
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
argument
Constructor | Description |
---|---|
SystemFunction() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addContextDocumentArgument(int pos,
java.lang.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.
|
int |
computeSpecialProperties() |
Determine the special properties of this expression.
|
void |
display(int level,
java.io.PrintStream out,
Configuration config) |
Diagnostic print of expression structure
|
StandardFunction.Entry |
getDetails() |
Get the details
|
java.lang.String |
getErrorCodeForTypeErrors() |
Return the error code to be used for type errors.
|
ItemType |
getItemType(TypeHierarchy th) |
Determine the item type of the value returned by the function
|
protected SequenceType |
getRequiredType(int arg) |
Get the required type of the nth argument
|
static void |
main(java.lang.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(java.lang.String name,
int arity,
NamePool pool) |
Make a system function (one in the standard function namespace).
|
void |
setDetails(StandardFunction.Entry entry) |
Set the details of this type of function
|
protected void |
useContextItemAsDefault() |
Set "." as the default value for the first and only argument.
|
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
public static FunctionCall makeSystemFunction(java.lang.String name, int arity, NamePool pool)
name
- The local name of the function. It may also be a lexical QName for
a recognized built-in function, e.g. saxon:evaluate, in which case the prefix is hard-coded.public void setDetails(StandardFunction.Entry entry)
public StandardFunction.Entry getDetails()
public void checkArguments(StaticContext env) throws XPathException
checkArguments
in class FunctionCall
XPathException
public java.lang.String getErrorCodeForTypeErrors()
protected SequenceType getRequiredType(int arg)
public ItemType getItemType(TypeHierarchy th)
th
- public int computeCardinality()
computeCardinality
in class ComputedExpression
public int computeSpecialProperties()
computeSpecialProperties
in class ComputedExpression
protected final void useContextItemAsDefault()
protected final void addContextDocumentArgument(int pos, java.lang.String augmentedName) throws StaticError
StaticError
public void display(int level, java.io.PrintStream out, Configuration config)
display
in interface Expression
display
in class FunctionCall
level
- indentation level for this expressionout
- Output destinationpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception