Class Generator

    • Constructor Detail

      • Generator

        public Generator()
    • Method Detail

      • getPackageName

        public static String getPackageName​(String fullClassName)
        Returns:
        the package name or null.
      • getBaseName

        public static String getBaseName​(String fullClassName)
        Returns:
        simple class name (including wrapper class and dollar sign if it is internal class)
      • removeRedundantMethods

        protected Method[] removeRedundantMethods​(Method[] methods)
        Remove duplicates from method array.

        Duplicates will arise if a class/intf and super-class/intf define methods with the same signature. Potentially the throws clauses of the methods may be different (note Java requires that the superclass/intf method have a superset of the exceptions in the derived method).

        Parameters:
        methods -
        Returns:
        methods which can be generated in an interface