public class Configuration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static javax.tools.Diagnostic.Kind |
DEFAULT_DIAGNOSTIC_KIND
The diagnostic kind to be used if no or an invalid kind is given as processor option.
|
static java.lang.String |
DIAGNOSTIC_KIND_PROCESSOR_OPTION
The name of the processor option for setting the diagnostic kind to be
used when reporting errors during annotation processing.
|
static java.lang.String |
METHOD_CONSTRAINTS_SUPPORTED_PROCESSOR_OPTION
The name of the processor option for allowing constraints at methods
other than getter methods.
|
static java.lang.String |
VERBOSE_PROCESSOR_OPTION
The name of the processor option for activating verbose message reporting.
|
Constructor and Description |
---|
Configuration(java.util.Map<java.lang.String,java.lang.String> options,
javax.annotation.processing.Messager messager) |
Modifier and Type | Method and Description |
---|---|
javax.tools.Diagnostic.Kind |
getDiagnosticKind()
Returns the diagnosticKind to be used when reporting failing constraint checks.
|
boolean |
isVerbose()
Whether logging information shall be put out in a verbose way or not.
|
boolean |
methodConstraintsSupported()
Whether method constraints are allowed at any method (
true ) or only
getter methods (false ). |
public static final java.lang.String DIAGNOSTIC_KIND_PROCESSOR_OPTION
public static final java.lang.String VERBOSE_PROCESSOR_OPTION
public static final java.lang.String METHOD_CONSTRAINTS_SUPPORTED_PROCESSOR_OPTION
public static final javax.tools.Diagnostic.Kind DEFAULT_DIAGNOSTIC_KIND
public Configuration(java.util.Map<java.lang.String,java.lang.String> options, javax.annotation.processing.Messager messager)
public javax.tools.Diagnostic.Kind getDiagnosticKind()
public boolean isVerbose()
true
if logging information shall be put out in a verbose, false
otherwisepublic boolean methodConstraintsSupported()
true
) or only
getter methods (false
).true
if method constraints are allowed on any method, {code false} if only on getter methodsCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved