Package net.sf.saxon.ma.map
Class MapWithTypeCache
java.lang.Object
net.sf.saxon.ma.MapOrArray
net.sf.saxon.ma.map.MapItem
net.sf.saxon.ma.map.MapWithTypeCache
- All Implemented Interfaces:
Callable,FunctionItem,GroundedValue,Item,Sequence
- Direct Known Subclasses:
AbstractFixedMap,DeltaMap,ExtensibleMap
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.ma.map.MapItem
MapItem.KeyIterator -
Field Summary
FieldsFields inherited from class net.sf.saxon.ma.map.MapItem
mapConstructorDuplicatesAction, xslMapDuplicatesAction, xslRecordDuplicatesAction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconforms(PlainType keyType, SequenceType valueType) Ask whether the map conforms to a given map type.protected voidsetKnownType(PlainType keyType, SequenceType valueType) Methods inherited from class net.sf.saxon.ma.map.MapItem
atomize, call, deepEqual40, deepEquals, effectiveBooleanValue, entries, export, followingKeyValuePairs, get, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemType, getItemTypeOfSequence, getOperandRoles, getSpecVersion, getTypedValue, getU, getUnicodeStringValue, getWithPlan, isArray, isEmpty, isKnownToConform, isMap, isTrustedResultType, itemAt, keys, keyValuePairs, makeNewContext, mapToString, precedingKeyValuePairs, put, remove, setSpecVersion, size, toShortStringMethods inherited from class net.sf.saxon.ma.MapOrArray
obtainRootJNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
isSequenceVariadicMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLabel, getLength, getStringValue, head, isStreamed, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Field Details
-
knownKeyType
-
knownValueType
-
-
Constructor Details
-
MapWithTypeCache
public MapWithTypeCache()
-
-
Method Details
-
setKnownType
-
conforms
Ask whether the map conforms to a given map type. This implementation caches the given type to avoid a complete scan of the map entries in cases where the type has already been established; this also involves passing on available type information when new maps are created using put() and remove() (which is done in subclasses).
-