Class BaseUnionArray

    • Constructor Detail

      • BaseUnionArray

        public BaseUnionArray​(Union elementUnion)
        Constructor for BaseUnionArray
        Parameters:
        elementUnion - The union introspection interface for each element
    • Method Detail

      • getID

        public String getID()
        Description copied from interface: Field
        Get the identification string.
        Specified by:
        getID in interface Field
        Returns:
        the identification string, can be empty
      • getUnion

        public Union getUnion()
        Description copied from interface: UnionArray
        Get the union interface for an array element.
        Specified by:
        getUnion in interface UnionArray
        Returns:
        the interface
      • toString

        public void toString​(StringBuilder buf,
                             int indentLevel)
        Description copied from interface: Field
        Convert to a string
        Specified by:
        toString in interface Field
        Specified by:
        toString in class BaseField
        Parameters:
        buf - buffer for the result
        indentLevel - the indentation level
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getArraySizeType

        public Array.ArraySizeType getArraySizeType()
        Description copied from interface: Array
        Get array size type (i.e. variable/fixed/bounded size array).
        Specified by:
        getArraySizeType in interface Array
        Returns:
        array size type enum
      • getMaximumCapacity

        public int getMaximumCapacity()
        Description copied from interface: Array
        Get maximum capacity of the array.
        Specified by:
        getMaximumCapacity in interface Array
        Returns:
        maximum capacity of the array, 0 indicates variable size array