Class TypeImpl_array

    • Field Detail

      • componentType

        private final TypeImpl componentType
      • isHeapStoredArray

        private final boolean isHeapStoredArray
      • componentSlotKind

        private final SlotKinds.SlotKind componentSlotKind
        Component slot kind
    • Constructor Detail

    • Method Detail

      • getComponentType

        public TypeImpl getComponentType()
        Description copied from interface: Type
        For array types, returns the component type of the array type. For all other types, it will return null.
        Specified by:
        getComponentType in interface Type
        Overrides:
        getComponentType in class TypeImpl
        Returns:
        The component type of an array type.
      • consolidateType

        TypeImpl consolidateType​(TypeImpl topType,
                                 TypeImpl fsArrayType)
        Description copied from class: TypeImpl
        Consolidate arrays of fsRefs to fsArrayType and ordinary fsRefs to TOP for generic getters and setters
        Overrides:
        consolidateType in class TypeImpl
        Parameters:
        topType - -
        fsArrayType - -
        Returns:
        this type or one of the two passed in types
      • isArray

        public boolean isArray()
        Description copied from interface: Type
        Check if the type is an array type.
        Specified by:
        isArray in interface Type
        Overrides:
        isArray in class TypeImpl
        Returns:
        true iff the type is an array type.
        See Also:
        Type.isArray()
      • isHeapStoredArray

        boolean isHeapStoredArray()
        Description copied from class: TypeImpl
        model how v2 stores this - needed for backward compatibility / (de)serialization
        Overrides:
        isHeapStoredArray in class TypeImpl
        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: TypeImpl
        model how v2 stores this - needed for backward compatibility / (de)serialization
        Overrides:
        isAuxStoredArray in class TypeImpl
        Returns:
        true if it is an array and is one of the 3 aux arrays (byte (also used for boolean) short, long
      • subsumes

        public boolean subsumes​(TypeImpl subType)
        Overrides:
        subsumes in class TypeImpl
        Parameters:
        subType - the subtype to check
        Returns:
        true if this type subsumes the subtype (is equal to or a supertype of the subtype)
      • isTypedFsArray

        public boolean isTypedFsArray()
        Overrides:
        isTypedFsArray in class TypeImpl
        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

        void setGeneratorArray​(FsGeneratorArray generatorArray)
        Parameters:
        generatorArray - the generatorArray to set