Class Methods

    • Method Detail

      • removeAllAnnotations

        public static void removeAllAnnotations​(MethodSource<?> source)
      • implementAbstractMethods

        public static java.util.List<MethodSource<?>> implementAbstractMethods​(java.lang.Class<?> source,
                                                                               MethodHolderSource<?> target)
        Implement the abstract methods present in a Class to the specified MethodHolderSource.
        Parameters:
        source - the Class where the methods will be imported from
        target - the MethodHolderSource where the methods will be exported to
        Returns:
        a List of the implemented methods added to the provided MethodHolderSource
      • implementMethod

        public static void implementMethod​(MethodSource<?> source)
        Adds a default method implementation to the given MethodSource. This method will call AbstractableSource.setAbstract(boolean) with false before setting the body if the origin is not an interface.
        Parameters:
        source - the method where the implementation should be added
      • generateParameterNames

        public static java.lang.String[] generateParameterNames​(java.lang.Class<?>[] parameterTypes)
        Generate the parameter names for given parameter types
        Parameters:
        parameterTypes - the parameter types to use
        Returns:
        the parameter names of a given Method