Class CheckParameterizables


  • public class CheckParameterizables
    extends java.lang.Object
    Perform some consistency checks on classes that cannot be specified as Java interface.
    Since:
    0.3
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        The logger for this class.
      • knownParameterizables

        private java.util.List<java.lang.Class<?>> knownParameterizables
        Known parameterizable classes/interfaces.
    • Constructor Detail

      • CheckParameterizables

        public CheckParameterizables()
    • Method Detail

      • checkParameterizables

        public void checkParameterizables()
        Validate all "Parameterizable" objects for parts of the API contract that cannot be specified in Java interfaces (such as constructors, static methods)
      • checkSupertypes

        private boolean checkSupertypes​(java.lang.Class<?> cls)
        Check all supertypes of a class.
        Parameters:
        cls - Class to check.
        Returns:
        true when at least one supertype is a known parameterizable type.
      • checkParameterizer

        private boolean checkParameterizer​(java.lang.Class<?> cls,
                                           java.lang.Class<? extends Parameterizer> par)
      • main

        public static void main​(java.lang.String[] args)
        Parameters:
        args - Command line arguments