Class UpgradeJavaMessage
- java.lang.Object
-
- com.github.javaparser.ast.validator.language_level_validations.UpgradeJavaMessage
-
public final class UpgradeJavaMessage extends java.lang.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 Summary
Fields Modifier and Type Field Description private ParserConfiguration.LanguageLevel
level
The language level that must be configured.private java.lang.String
reason
The reason why the language level must be upgraded.
-
Constructor Summary
Constructors Constructor Description UpgradeJavaMessage(java.lang.String reason, ParserConfiguration.LanguageLevel level)
Contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
reason
private final java.lang.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 Detail
-
UpgradeJavaMessage
UpgradeJavaMessage(java.lang.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.
-
-