Package net.sf.saxon.type
Class AnyFunctionTypeWithAssertions
java.lang.Object
net.sf.saxon.type.AnyFunctionType
net.sf.saxon.type.AnyFunctionTypeWithAssertions
- All Implemented Interfaces:
FunctionItemType,ItemType
The item type function(*) when it is preceded by one or more annotation assertions
-
Field Summary
Fields inherited from class net.sf.saxon.type.AnyFunctionType
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionAnyFunctionTypeWithAssertions(AnnotationList assertions, Configuration config) Construct an item type representing the item type function(*) with a list of annotation assertions -
Method Summary
Modifier and TypeMethodDescriptionGet the list of annotation assertions defined on this function item type.booleanTest whether a given item conforms to this typeMethods inherited from class net.sf.saxon.type.AnyFunctionType
explainMismatch, getArgumentTypes, getAtomizedItemType, getBasicAlphaCode, getCoercionPlan, getDefaultPriority, getPrimitiveItemType, getPrimitiveType, getResultType, getUType, isArrayType, isAtomicType, isAtomizable, isMapType, isPlainType, makeFunctionSequenceCoercer, relationship, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.type.FunctionItemType
getGenreMethods inherited from interface net.sf.saxon.type.ItemType
asChoiceItemType, getNormalizedDefaultPriority, normalizeItemType, toExportString
-
Constructor Details
-
AnyFunctionTypeWithAssertions
Construct an item type representing the item type function(*) with a list of annotation assertions- Parameters:
assertions- the annotation assertions
-
-
Method Details
-
getAnnotationAssertions
Get the list of annotation assertions defined on this function item type.- Specified by:
getAnnotationAssertionsin interfaceFunctionItemType- Overrides:
getAnnotationAssertionsin classAnyFunctionType- Returns:
- the list of annotation assertions, or an empty list if there are none
-
matches
Test whether a given item conforms to this type- Specified by:
matchesin interfaceItemType- Overrides:
matchesin classAnyFunctionType- Parameters:
item- The item to be tested- Returns:
- true if the item is an instance of this type; false otherwise
-