Package eu.bandm.tools.tpath.type
Class BuiltinFunctionSignature
java.lang.Object
eu.bandm.tools.tpath.type.BuiltinFunctionSignature
- All Implemented Interfaces:
FunctionSignature
A restricted implementation used by
Restrictions include : only one range for all domain signatures. The class
BuiltInFunctions
and
BuiltInFunctions
.Restrictions include : only one range for all domain signatures. The class
FunctionLibrary
provides further convenience methods for constructing libraries and signatures.-
Constructor Summary
ConstructorDescriptionBuiltinFunctionSignature
(Type.XPathType range, NamespaceName name) BuiltinFunctionSignature
(Type.XPathType range, String name) -
Method Summary
Modifier and TypeMethodDescriptionaddArgument
(Class<? extends Type.XPathType> type) addArgument
(Predicate<? super Type.XPathType> type) addArgumentOptional
(Class<? extends Type.XPathType> type) addArgumentOptional
(Predicate<? super Type.XPathType> type) addArgumentPlus
(Class<? extends Type.XPathType> type) addArgumentPlus
(Predicate<? super Type.XPathType> type) addArgumentStar
(Class<? extends Type.XPathType> type) addArgumentStar
(Predicate<? super Type.XPathType> type) boolean
checkArity
(int arity) Are there signatures with that arity?checkDomain
(List<? extends Type.XPathType> argtypes) Is there an overloaded version with that sequence of argument types?getName()
getRange
(List<? extends Type.XPathType> argtypes) What is the result type for that sequence of argument types?
-
Constructor Details
-
BuiltinFunctionSignature
-
BuiltinFunctionSignature
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceFunctionSignature
-
checkArity
public boolean checkArity(int arity) Description copied from interface:FunctionSignature
Are there signatures with that arity?- Specified by:
checkArity
in interfaceFunctionSignature
-
checkDomain
Description copied from interface:FunctionSignature
Is there an overloaded version with that sequence of argument types?- Specified by:
checkDomain
in interfaceFunctionSignature
-
getRange
Description copied from interface:FunctionSignature
What is the result type for that sequence of argument types?- Specified by:
getRange
in interfaceFunctionSignature
-
addArgument
-
addArgument
-
addArgumentOptional
-
addArgumentOptional
-
addArgumentStar
-
addArgumentStar
-
addArgumentPlus
-
addArgumentPlus
-