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
ANY_FUNCTION
-
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.boolean
matches
(Item item, TypeHierarchy th) Test whether a given item conforms to this typeMethods inherited from class net.sf.saxon.type.AnyFunctionType
getArgumentTypes, getAtomizedItemType, getBasicAlphaCode, getDefaultPriority, getInstance, getPrimitiveItemType, getPrimitiveType, getResultType, getUType, isArrayType, isAtomicType, isAtomizable, isMapType, isPlainType, makeFunctionSequenceCoercer, relationship, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.saxon.type.FunctionItemType
getGenre
Methods inherited from interface net.sf.saxon.type.ItemType
explainMismatch, getFullAlphaCode, getNormalizedDefaultPriority, 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:
getAnnotationAssertions
in interfaceFunctionItemType
- Overrides:
getAnnotationAssertions
in 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:
matches
in interfaceItemType
- Overrides:
matches
in classAnyFunctionType
- Parameters:
item
- The item to be testedth
- the type hierarchy cache- Returns:
- true if the item is an instance of this type; false otherwise
-