Package org.mapstruct.ap.internal.gem
Enum ReportingPolicyGem
- java.lang.Object
-
- java.lang.Enum<ReportingPolicyGem>
-
- org.mapstruct.ap.internal.gem.ReportingPolicyGem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ReportingPolicyGem>
public enum ReportingPolicyGem extends java.lang.Enum<ReportingPolicyGem>
Gem for the enumReportingPolicy.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.tools.Diagnostic.KinddiagnosticKindprivate booleanfailsBuildprivate booleanrequiresReport
-
Constructor Summary
Constructors Modifier Constructor Description privateReportingPolicyGem(javax.tools.Diagnostic.Kind diagnosticKind, boolean requiresReport, boolean failsBuild)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfailsBuild()javax.tools.Diagnostic.KindgetDiagnosticKind()booleanrequiresReport()static ReportingPolicyGemvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ReportingPolicyGem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final ReportingPolicyGem IGNORE
-
WARN
public static final ReportingPolicyGem WARN
-
ERROR
public static final ReportingPolicyGem ERROR
-
-
Method Detail
-
values
public static ReportingPolicyGem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReportingPolicyGem c : ReportingPolicyGem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReportingPolicyGem valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getDiagnosticKind
public javax.tools.Diagnostic.Kind getDiagnosticKind()
-
requiresReport
public boolean requiresReport()
-
failsBuild
public boolean failsBuild()
-
-