Package org.apache.uima.cas.impl
Class TypeImpl_array
java.lang.Object
org.apache.uima.cas.impl.TypeImpl
org.apache.uima.cas.impl.TypeImpl_array
- All Implemented Interfaces:
Comparable<TypeImpl>,Iterable<Feature>,TypeSystemConstants,Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SlotKinds.SlotKindComponent slot kindprivate final TypeImplprivate FsGeneratorArrayprivate final booleanFields inherited from class org.apache.uima.cas.impl.TypeImpl
hasRefFeature, highestOffset, isBuiltIn, isCreatableAndNotBuiltinArray, isFeatureFinal, isInheritanceFinal, isLongOrDouble, isRefType, javaClass, nbrOfLongOrDoubleFeatures, nbrOfUsedIntDataSlots, nbrOfUsedRefDataSlots, singleton, slotKindFields inherited from interface org.apache.uima.cas.impl.TypeSystemConstants
annotBaseSofaFeatAdjOffset, annotBaseSofaFeatCode, annotBaseTypeCode, annotTypeCode, arrayBaseTypeCode, beginFeatAdjOffset, beginFeatCode, booleanArrayTypeCode, booleanTypeCode, byteArrayTypeCode, byteTypeCode, docTypeCode, doubleArrayTypeCode, doubleTypeCode, endFeatAdjOffset, endFeatCode, floatArrayTypeCode, floatEListTypeCode, floatListTypeCode, floatNeListTypeCode, floatTypeCode, fsArrayTypeCode, fsEListTypeCode, fsListTypeCode, fsNeListTypeCode, intArrayTypeCode, intEListTypeCode, intListTypeCode, intNeListTypeCode, intTypeCode, langFeatAdjOffset, langFeatCode, longArrayTypeCode, longTypeCode, shortArrayTypeCode, shortTypeCode, sofaArrayFeatAdjOffset, sofaArrayFeatCode, sofaIdFeatAdjOffset, sofaIdFeatCode, sofaMimeFeatAdjOffset, sofaMimeFeatCode, sofaNumFeatAdjOffset, sofaNumFeatCode, sofaStringFeatAdjOffset, sofaStringFeatCode, sofaTypeCode, sofaUriFeatAdjOffset, sofaUriFeatCode, stringArrayTypeCode, stringEListTypeCode, stringListTypeCode, stringNeListTypeCode, stringTypeCode, topTypeCode -
Constructor Summary
ConstructorsConstructorDescriptionTypeImpl_array(String name, TypeImpl componentType, TypeSystemImpl tsi, TypeImpl supertype, SlotKinds.SlotKind componentSlotKind, boolean isHeapStoredArray, Class<?> javaClass) -
Method Summary
Modifier and TypeMethodDescription(package private) TypeImplconsolidateType(TypeImpl topType, TypeImpl fsArrayType) Consolidate arrays of fsRefs to fsArrayType and ordinary fsRefs to TOP for generic getters and settersComponent Slot KindFor array types, returns the component type of the array type.(package private) FsGeneratorArraybooleanisArray()Check if the type is an array type.(package private) booleanmodel how v2 stores this - needed for backward compatibility / (de)serialization(package private) booleanmodel how v2 stores this - needed for backward compatibility / (de)serializationboolean(package private) voidsetGeneratorArray(FsGeneratorArray generatorArray) booleanMethods inherited from class org.apache.uima.cas.impl.TypeImpl
addFeature, checkExistingFeatureCompatible, compareTo, computeDepthFirstCode, equals, getAdjOffset, getAllSubtypes, getAllSuperTypes, getAppropriateFeatures, getCode, getDirectSubtypes, getFeature, getFeatureByAdjOffset, getFeatureByBaseName, getFeatureImpls, getFeatures, getFeaturesAsStream, getFsSpaceReq, getFsSpaceReq, getFsSpaceReq, getJavaClass, getJCasClassName, getMergedStaticFeaturesIntroducedByThisType, getName, getNbrOfLongOrDoubleFeatures, getNumberOfFeatures, getShortName, getStaticMergedNonSofaFsRefs, getSuperType, getTypeSystem, hashCode, hashCodeNameLong, hasRefFeature, hasSupertype, initAdjOffset2FeatureMaps, isAnnotationBaseType, isAnnotationType, isAppropriateFeature, isCreatableAndNotBuiltinArray, isFeatureFinal, isInheritanceFinal, isLongOrDouble, isPrimitive, isPrimitiveArrayType, isStringOrStringSubtype, isStringSubtype, isTopType, iterator, prettyPrint, prettyPrintWithSubTypes, setBuiltIn, setFeatureFinal, setInheritanceFinal, setJavaClass, setStaticMergedIntFeaturesList, setStaticMergedNonSofaFsRefs, setStaticMergedRefFeaturesList, subsumesStrictly, subsumesValue, toString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
componentType
-
isHeapStoredArray
private final boolean isHeapStoredArray -
componentSlotKind
Component slot kind -
generatorArray
-
-
Constructor Details
-
TypeImpl_array
public TypeImpl_array(String name, TypeImpl componentType, TypeSystemImpl tsi, TypeImpl supertype, SlotKinds.SlotKind componentSlotKind, boolean isHeapStoredArray, Class<?> javaClass)
-
-
Method Details
-
getComponentType
Description copied from interface:TypeFor array types, returns the component type of the array type. For all other types, it will returnnull.- Specified by:
getComponentTypein interfaceType- Overrides:
getComponentTypein classTypeImpl- Returns:
- The component type of an array type.
-
consolidateType
Description copied from class:TypeImplConsolidate arrays of fsRefs to fsArrayType and ordinary fsRefs to TOP for generic getters and setters- Overrides:
consolidateTypein classTypeImpl- Parameters:
topType- -fsArrayType- -- Returns:
- this type or one of the two passed in types
-
isArray
public boolean isArray()Description copied from interface:TypeCheck if the type is an array type. -
isHeapStoredArray
boolean isHeapStoredArray()Description copied from class:TypeImplmodel how v2 stores this - needed for backward compatibility / (de)serialization- Overrides:
isHeapStoredArrayin classTypeImpl- Returns:
- true if it is an array and is stored in the main heap (int, float, or string)
-
isAuxStoredArray
boolean isAuxStoredArray()Description copied from class:TypeImplmodel how v2 stores this - needed for backward compatibility / (de)serialization- Overrides:
isAuxStoredArrayin classTypeImpl- Returns:
- true if it is an array and is one of the 3 aux arrays (byte (also used for boolean) short, long
-
getComponentSlotKind
Component Slot Kind- Overrides:
getComponentSlotKindin classTypeImpl
-
subsumes
-
isTypedFsArray
public boolean isTypedFsArray()- Overrides:
isTypedFsArrayin classTypeImpl- Returns:
- true if this array type is a subtype of FSArray over a specific feature structure (other than TOP, or one of the primitives)
-
getGeneratorArray
FsGeneratorArray getGeneratorArray()- Returns:
- the generatorArray
-
setGeneratorArray
- Parameters:
generatorArray- the generatorArray to set
-