Class AbstractReflectArray

  • All Implemented Interfaces:
    ReflectArray
    Direct Known Subclasses:
    JdkArray

    public abstract class AbstractReflectArray
    extends java.lang.Object
    implements ReflectArray
    • Field Detail

      • _reflector

        protected final Reflector _reflector
    • Constructor Detail

      • AbstractReflectArray

        public AbstractReflectArray​(Reflector reflector)
    • Method Detail

      • dimensions

        public int[] dimensions​(java.lang.Object arr)
        Specified by:
        dimensions in interface ReflectArray
      • flatten

        public int flatten​(java.lang.Object a_shaped,
                           int[] a_dimensions,
                           int a_currentDimension,
                           java.lang.Object[] a_flat,
                           int a_flatElement)
        Specified by:
        flatten in interface ReflectArray
      • get

        public java.lang.Object get​(java.lang.Object onArray,
                                    int index)
        Specified by:
        get in interface ReflectArray
      • getLength

        public int getLength​(java.lang.Object array)
        Specified by:
        getLength in interface ReflectArray
      • set

        public void set​(java.lang.Object onArray,
                        int index,
                        java.lang.Object element)
        Specified by:
        set in interface ReflectArray
      • shape

        public int shape​(java.lang.Object[] a_flat,
                         int a_flatElement,
                         java.lang.Object a_shaped,
                         int[] a_dimensions,
                         int a_currentDimension)
        Specified by:
        shape in interface ReflectArray