java.lang.Object
com.github.javaparser.ast.validator.language_level_validations.UpgradeJavaMessage

public final class UpgradeJavaMessage extends Object
Suggestion to upgrade the Java language level. A message that can be used to tell the user that a feature is not available in the configured language level.
Since:
3.24.5
  • Field Details

    • reason

      private final String reason
      The reason why the language level must be upgraded.
    • level

      private final ParserConfiguration.LanguageLevel level
      The language level that must be configured.
  • Constructor Details

    • UpgradeJavaMessage

      UpgradeJavaMessage(String reason, ParserConfiguration.LanguageLevel level)
      Contructor.
      Parameters:
      reason - The reason why the language level must be upgraded.
      level - The language level that must be configured.
  • Method Details