Class RepeaterGeometryFunction

    • Constructor Detail

      • RepeaterGeometryFunction

        public RepeaterGeometryFunction​(GeometryFunction fun,
                                        int count)
    • Method Detail

      • getCategory

        public java.lang.String getCategory()
        Description copied from interface: GeometryFunction
        Gets the category name of this function
        Specified by:
        getCategory in interface GeometryFunction
        Returns:
        the category name of the function
      • getName

        public java.lang.String getName()
        Description copied from interface: GeometryFunction
        Gets the name of this function
        Specified by:
        getName in interface GeometryFunction
        Returns:
        the name of the function
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: GeometryFunction
        Gets the description of this function
        Specified by:
        getDescription in interface GeometryFunction
        Returns:
        the name of the function
      • getParameterNames

        public java.lang.String[] getParameterNames()
        Description copied from interface: GeometryFunction
        Gets the parameter names for this function
        Specified by:
        getParameterNames in interface GeometryFunction
        Returns:
        the names of the function parameters
      • getParameterTypes

        public java.lang.Class[] getParameterTypes()
        Description copied from interface: GeometryFunction
        Gets the types of the other function arguments, if any.
        Specified by:
        getParameterTypes in interface GeometryFunction
        Returns:
        the types
      • getReturnType

        public java.lang.Class getReturnType()
        Description copied from interface: GeometryFunction
        Gets the return type of this function
        Specified by:
        getReturnType in interface GeometryFunction
        Returns:
        the type of the value returned by this function
      • getSignature

        public java.lang.String getSignature()
        Description copied from interface: GeometryFunction
        Gets a string representing the signature of this function.
        Specified by:
        getSignature in interface GeometryFunction
        Returns:
        the string for the function signature
      • repeatAnnotation

        private java.lang.String repeatAnnotation()
      • invoke

        public java.lang.Object invoke​(Geometry geom,
                                       java.lang.Object[] args)
        Description copied from interface: GeometryFunction
        Invokes this function. Note that any exceptions returned must be RuntimeExceptions.
        Specified by:
        invoke in interface GeometryFunction
        Parameters:
        geom - the target geometry
        args - the other arguments to the function
        Returns:
        the value computed by the function
      • repeatableArgIndex

        public static int repeatableArgIndex​(GeometryFunction fun)
      • invokeRepeated

        private java.lang.Object invokeRepeated​(Geometry geom,
                                                java.lang.Object[] args,
                                                double argStart)
      • copyArgs

        private java.lang.Object[] copyArgs​(java.lang.Object[] args,
                                            int replaceIndex,
                                            double val)