Class JavaVersionImpl

    • Constructor Detail

      • JavaVersionImpl

        public JavaVersionImpl()
      • JavaVersionImpl

        public JavaVersionImpl​(int javaVersion)
    • Method Detail

      • isJava6Compatible

        public boolean isJava6Compatible()
        Description copied from interface: JavaVersion
        Test if java version of the project is greater than or equal to 6.
        Specified by:
        isJava6Compatible in interface JavaVersion
        Returns:
        true if java version used is >= 6
      • isJava7Compatible

        public boolean isJava7Compatible()
        Description copied from interface: JavaVersion
        Test if java version of the project is greater than or equal to 7.
        Specified by:
        isJava7Compatible in interface JavaVersion
        Returns:
        true if java version used is >= 7
      • isJava8Compatible

        public boolean isJava8Compatible()
        Description copied from interface: JavaVersion
        Test if java version of the project is greater than or equal to 8.
        Specified by:
        isJava8Compatible in interface JavaVersion
        Returns:
        true if java version used is >= 8
      • isJava12Compatible

        public boolean isJava12Compatible()
        Description copied from interface: JavaVersion
        Test if java version of the project is greater than or equal to 12. Remark - Contrary to other isJava*Compatible methods, this one will NOT return true if version is not set
        Specified by:
        isJava12Compatible in interface JavaVersion
        Returns:
        true if java version used is >= 12
      • java6CompatibilityMessage

        public String java6CompatibilityMessage()
        Description copied from interface: JavaVersion
        Default compatibility message with java 6
        Specified by:
        java6CompatibilityMessage in interface JavaVersion
        Returns:
        empty string if java version is properly set, default message otherwise.
      • java7CompatibilityMessage

        public String java7CompatibilityMessage()
        Description copied from interface: JavaVersion
        Default compatibility message with java 7
        Specified by:
        java7CompatibilityMessage in interface JavaVersion
        Returns:
        empty string if java version is properly set, default message otherwise.
      • java8CompatibilityMessage

        public String java8CompatibilityMessage()
        Description copied from interface: JavaVersion
        Default compatibility message with java 8
        Specified by:
        java8CompatibilityMessage in interface JavaVersion
        Returns:
        empty string if java version is properly set, default message otherwise.
      • asInt

        public int asInt()
        Description copied from interface: JavaVersion
        get java version as integer
        Specified by:
        asInt in interface JavaVersion
        Returns:
        an int representing the java version
      • isNotSet

        public boolean isNotSet()
        Description copied from interface: JavaVersion
        Test if java version has been set for the analysis.
        Specified by:
        isNotSet in interface JavaVersion
        Returns:
        false if set, true otherwise.