public class SpecificFunctionType extends AnyFunctionType
ItemType.WithSequenceTypeCacheANY_FUNCTION| Constructor and Description |
|---|
SpecificFunctionType(SequenceType[] argTypes,
SequenceType resultType) |
SpecificFunctionType(SequenceType[] argTypes,
SequenceType resultType,
AnnotationList annotations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Test whether this function type equals another function type
|
java.util.Optional<java.lang.String> |
explainMismatch(Item item,
TypeHierarchy th)
Get extra diagnostic information about why a supplied item does not conform to this
item type, if available.
|
AnnotationList |
getAnnotationAssertions()
Get the list of annotation assertions defined on this function item type.
|
SequenceType[] |
getArgumentTypes()
Get the argument types
|
int |
getArity()
Get the arity (number of arguments) of this function type
|
double |
getDefaultPriority()
Get the default priority when this ItemType is used as an XSLT pattern
|
SequenceType |
getResultType()
Get the result type
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isAtomizable(TypeHierarchy th)
Ask whether values of this type are atomizable
|
Expression |
makeFunctionSequenceCoercer(Expression exp,
RoleDiagnostic role)
Create an expression whose effect is to apply function coercion to coerce a function from this type to another type
|
boolean |
matches(Item item,
TypeHierarchy th)
Test whether a given item conforms to this type
|
Affinity |
relationship(FunctionItemType other,
TypeHierarchy th)
Determine the relationship of one function item type to another.
|
java.lang.String |
toExportString()
Return a string representation of this ItemType suitable for use in stylesheet
export files.
|
java.lang.String |
toString()
Produce a representation of this type name for use in error messages.
|
getAtomizedItemType, getBasicAlphaCode, getInstance, getPrimitiveItemType, getPrimitiveType, getUType, isArrayType, isAtomicType, isMapType, isPlainTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetGenregetFullAlphaCode, getNormalizedDefaultPriority, isTrueItemTypepublic SpecificFunctionType(SequenceType[] argTypes, SequenceType resultType)
public SpecificFunctionType(SequenceType[] argTypes, SequenceType resultType, AnnotationList annotations)
public int getArity()
public SequenceType[] getArgumentTypes()
getArgumentTypes in interface FunctionItemTypegetArgumentTypes in class AnyFunctionTypepublic SequenceType getResultType()
getResultType in interface FunctionItemTypegetResultType in class AnyFunctionTypepublic AnnotationList getAnnotationAssertions()
getAnnotationAssertions in interface FunctionItemTypegetAnnotationAssertions in class AnyFunctionTypepublic boolean isAtomizable(TypeHierarchy th)
isAtomizable in interface ItemTypeisAtomizable in class AnyFunctionTypeth - The type hierarchy cachepublic java.lang.String toString()
toString in interface ItemTypetoString in class AnyFunctionTypepublic java.lang.String toExportString()
ItemTypetoString().public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Affinity relationship(FunctionItemType other, TypeHierarchy th)
relationship in interface FunctionItemTyperelationship in class AnyFunctionTypeAffinity.SUBSUMES, Affinity.SAME_TYPEpublic double getDefaultPriority()
getDefaultPriority in interface ItemTypegetDefaultPriority in class AnyFunctionTypepublic boolean matches(Item item, TypeHierarchy th)
matches in interface ItemTypematches in class AnyFunctionTypeitem - The item to be testedth - the type hierarchy cachepublic java.util.Optional<java.lang.String> explainMismatch(Item item, TypeHierarchy th)
item - the item that doesn't match this typeth - the type hierarchy cachepublic Expression makeFunctionSequenceCoercer(Expression exp, RoleDiagnostic role) throws XPathException
AnyFunctionTypemakeFunctionSequenceCoercer in interface FunctionItemTypemakeFunctionSequenceCoercer in class AnyFunctionTypeexp - the expression that delivers the supplied sequence of function items (the ones in need of coercion)role - information for use in diagnosticsXPathExceptionCopyright (c) 2004-2020 Saxonica Limited.