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
ConstructorsConstructorDescriptionBuiltinFunctionSignature(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) booleancheckArity(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:
getNamein interfaceFunctionSignature
-
checkArity
public boolean checkArity(int arity) Description copied from interface:FunctionSignatureAre there signatures with that arity?- Specified by:
checkArityin interfaceFunctionSignature
-
checkDomain
Description copied from interface:FunctionSignatureIs there an overloaded version with that sequence of argument types?- Specified by:
checkDomainin interfaceFunctionSignature
-
getRange
Description copied from interface:FunctionSignatureWhat is the result type for that sequence of argument types?- Specified by:
getRangein interfaceFunctionSignature
-
addArgument
-
addArgument
-
addArgumentOptional
-
addArgumentOptional
-
addArgumentStar
-
addArgumentStar
-
addArgumentPlus
-
addArgumentPlus
-