Interface MethodBinding.ParameterConsumer

    • Method Detail

      • accept

        boolean accept​(int idx,
                       int consumedCount,
                       Type cType,
                       JavaType jType,
                       String name)
        Accept the arguments of the traversed collection element and return true if consumed. Consumed elements will increased passed `consumedCount` state.
        Parameters:
        idx - index of current element, ranges [0 .. size-1]
        consumedCount - number of consumed elements, useful for e.g. `boolean needsSeparator = 0 < consumedCount`
        cType - C Type of argument
        jType - Java Type of argument
        name - argument name
        Returns:
        true to signal consumed and have traversing loop increment `consumedCount`, otherwise false