public class CompilerOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
AccessEmulation |
static int |
AccidentalBooleanAssign |
static java.lang.String |
ALL_STANDARD_TAGS |
boolean |
analyseResourceLeaks
Should resources (objects of type Closeable) be analysed for matching calls to close()?
|
static int |
AnnotationSuperInterface |
static int |
AssertUsedAsAnIdentifier |
static int |
AutoBoxing |
static int |
ComparingIdentical |
boolean |
complainOnUninternedIdentityComparison |
long |
complianceLevel
Compliance level for the compiler, refers to a JDK version, e.g.
|
static int |
DeadCode |
static java.lang.String |
DEFAULT |
java.lang.String |
defaultEncoding
Source encoding format
|
static java.lang.String |
DISABLED |
static int |
DiscouragedReference |
static java.lang.String |
DO_NOT_GENERATE |
boolean |
docCommentSupport
Master flag controlling whether doc comment should be processed
|
static int |
EmptyStatement |
boolean |
emulateJavacBug8031744 |
static java.lang.String |
ENABLED |
boolean |
enableSyntacticNullAnalysisForFields
Should immediate null-check for fields be considered during null analysis (syntactical match)?
|
static int |
EnumUsedAsAnIdentifier |
static java.lang.String |
ERROR |
IrritantSet |
errorThreshold
Defaults defined at
IrritantSet.COMPILER_DEFAULT_ERRORS |
static int |
ExplicitlyClosedAutoCloseable |
static int |
FallthroughCase |
static int |
FieldHiding |
static int |
FinallyBlockNotCompleting |
static int |
FinalParameterBound |
static int |
ForbiddenReference |
static java.lang.String |
GENERATE
Possible values for configurable options
|
boolean |
generateClassFiles
Indicate if annotation processing generates classfiles
|
boolean |
generateGenericSignatureForLambdaExpressions
Indicates whether generic signature should be generated for lambda expressions
|
static java.lang.String |
IGNORE |
boolean |
ignoreMethodBodies
Indicate if method bodies should be ignored
|
boolean |
ignoreSourceFolderWarningOption
Indicates that the 'ignore optional problems from source folder' option need to be ignored
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=372377
|
boolean |
includeNullInfoFromAsserts
Raise null related warnings for variables tainted inside an assert statement (java 1.4 and above)
|
static int |
IncompatibleNonInheritedInterfaceMethod |
static int |
IndirectStaticAccess |
boolean |
inheritNullAnnotations
Should null annotations of overridden methods be inherited?
|
boolean |
inlineJsrBytecode
Indicate whether the JSR bytecode should be inlined to avoid its presence in classfile
|
long |
intendedDefaultNonNullness
TagBits-encoded default for non-annotated types.
|
static int |
InvalidJavadoc |
boolean |
isAnnotationBasedNullAnalysisEnabled
Master switch for null analysis based on annotations:
|
boolean |
isTaskCaseSensitive
Indicate whether tag detection is case sensitive or not
|
static int |
LocalVariableHiding |
static int |
MaskedCatchBlock |
int |
maxProblemsPerUnit
Max problems per compilation unit
|
static int |
MethodCanBePotentiallyStatic |
static int |
MethodCanBeStatic |
static int |
MethodWithConstructorName
Bit mask for configurable problems (error/warning threshold)
Note: bitmask assumes 3 highest bits to denote irritant group (to allow storing 8 groups of 29 bits each
|
static int |
MissingDefaultCase |
static int |
MissingDeprecatedAnnotation |
static int |
MissingEnumConstantCase |
static int |
MissingJavadocComments |
static int |
MissingJavadocTagDescription |
static int |
MissingJavadocTags |
static int |
MissingNonNullByDefaultAnnotation |
static int |
MissingOverrideAnnotation |
static int |
MissingSerialVersion |
static int |
MissingSynchronizedModifierInInheritedMethod |
static java.lang.String |
NO_TAG |
static int |
NoEffectAssignment |
static int |
NoImplicitStringConversion |
static int |
NonExternalizedString |
char[][] |
nonNullAnnotationName
Fully qualified name of annotation to use as marker for nonnull types.
|
char[][] |
nonNullByDefaultAnnotationName
Fully qualified name of annotation to use as marker for default nonnull.
|
static int |
NonnullParameterAnnotationDropped |
static int |
NonStaticAccessToStatic |
char[][] |
nullableAnnotationName
Fully qualified name of annotation to use as marker for nullable types.
|
static int |
NullAnnotationInferenceConflict |
static int |
NullReference |
static int |
NullSpecViolation |
static int |
NullUncheckedConversion |
static java.lang.String |
OPTIMIZE_OUT |
static java.lang.String |
OPTION_AnnotationBasedNullAnalysis |
static java.lang.String |
OPTION_Compliance |
static java.lang.String |
OPTION_DocCommentSupport |
static java.lang.String |
OPTION_EmulateJavacBug8031744 |
static java.lang.String |
OPTION_Encoding |
static java.lang.String |
OPTION_FatalOptionalError |
static java.lang.String |
OPTION_GenerateClassFiles |
static java.lang.String |
OPTION_IncludeNullInfoFromAsserts |
static java.lang.String |
OPTION_InheritNullAnnotations |
static java.lang.String |
OPTION_InlineJsr |
static java.lang.String |
OPTION_LambdaGenericSignature |
static java.lang.String |
OPTION_LineNumberAttribute |
static java.lang.String |
OPTION_LocalVariableAttribute
Option IDs
|
static java.lang.String |
OPTION_MaxProblemPerUnit |
static java.lang.String |
OPTION_MethodParametersAttribute |
static java.lang.String |
OPTION_NonNullAnnotationName |
static java.lang.String |
OPTION_NonNullByDefaultAnnotationName |
static java.lang.String |
OPTION_NullableAnnotationName |
static java.lang.String |
OPTION_PreserveUnusedLocal |
static java.lang.String |
OPTION_Process_Annotations |
static java.lang.String |
OPTION_ReportAnnotationSuperInterface |
static java.lang.String |
OPTION_ReportAssertIdentifier |
static java.lang.String |
OPTION_ReportAutoboxing |
static java.lang.String |
OPTION_ReportComparingIdentical |
static java.lang.String |
OPTION_ReportDeadCode |
static java.lang.String |
OPTION_ReportDeadCodeInTrivialIfStatement |
static java.lang.String |
OPTION_ReportDeprecation |
static java.lang.String |
OPTION_ReportDeprecationInDeprecatedCode |
static java.lang.String |
OPTION_ReportDeprecationWhenOverridingDeprecatedMethod |
static java.lang.String |
OPTION_ReportDiscouragedReference |
static java.lang.String |
OPTION_ReportEmptyStatement |
static java.lang.String |
OPTION_ReportEnumIdentifier |
static java.lang.String |
OPTION_ReportExplicitlyClosedAutoCloseable |
static java.lang.String |
OPTION_ReportFallthroughCase |
static java.lang.String |
OPTION_ReportFieldHiding |
static java.lang.String |
OPTION_ReportFinallyBlockNotCompletingNormally |
static java.lang.String |
OPTION_ReportFinalParameterBound |
static java.lang.String |
OPTION_ReportForbiddenReference |
static java.lang.String |
OPTION_ReportHiddenCatchBlock |
static java.lang.String |
OPTION_ReportIncompatibleNonInheritedInterfaceMethod |
static java.lang.String |
OPTION_ReportIncompleteEnumSwitch |
static java.lang.String |
OPTION_ReportIndirectStaticAccess |
static java.lang.String |
OPTION_ReportInvalidJavadoc |
static java.lang.String |
OPTION_ReportInvalidJavadocTags |
static java.lang.String |
OPTION_ReportInvalidJavadocTagsDeprecatedRef |
static java.lang.String |
OPTION_ReportInvalidJavadocTagsNotVisibleRef |
static java.lang.String |
OPTION_ReportInvalidJavadocTagsVisibility |
static java.lang.String |
OPTION_ReportLocalVariableHiding |
static java.lang.String |
OPTION_ReportMethodCanBePotentiallyStatic |
static java.lang.String |
OPTION_ReportMethodCanBeStatic |
static java.lang.String |
OPTION_ReportMethodWithConstructorName |
static java.lang.String |
OPTION_ReportMissingDefaultCase |
static java.lang.String |
OPTION_ReportMissingDeprecatedAnnotation |
static java.lang.String |
OPTION_ReportMissingEnumCaseDespiteDefault |
static java.lang.String |
OPTION_ReportMissingHashCodeMethod |
static java.lang.String |
OPTION_ReportMissingJavadocComments |
static java.lang.String |
OPTION_ReportMissingJavadocCommentsOverriding |
static java.lang.String |
OPTION_ReportMissingJavadocCommentsVisibility |
static java.lang.String |
OPTION_ReportMissingJavadocTagDescription |
static java.lang.String |
OPTION_ReportMissingJavadocTags |
static java.lang.String |
OPTION_ReportMissingJavadocTagsMethodTypeParameters |
static java.lang.String |
OPTION_ReportMissingJavadocTagsOverriding |
static java.lang.String |
OPTION_ReportMissingJavadocTagsVisibility |
static java.lang.String |
OPTION_ReportMissingNonNullByDefaultAnnotation |
static java.lang.String |
OPTION_ReportMissingOverrideAnnotation |
static java.lang.String |
OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation |
static java.lang.String |
OPTION_ReportMissingSerialVersion |
static java.lang.String |
OPTION_ReportMissingSynchronizedOnInheritedMethod |
static java.lang.String |
OPTION_ReportNoEffectAssignment |
static java.lang.String |
OPTION_ReportNoImplicitStringConversion |
static java.lang.String |
OPTION_ReportNonExternalizedStringLiteral |
static java.lang.String |
OPTION_ReportNonnullParameterAnnotationDropped |
static java.lang.String |
OPTION_ReportNonStaticAccessToStatic |
static java.lang.String |
OPTION_ReportNullAnnotationInferenceConflict |
static java.lang.String |
OPTION_ReportNullReference |
static java.lang.String |
OPTION_ReportNullSpecViolation |
static java.lang.String |
OPTION_ReportNullUncheckedConversion |
static java.lang.String |
OPTION_ReportOverridingMethodWithoutSuperInvocation |
static java.lang.String |
OPTION_ReportOverridingPackageDefaultMethod |
static java.lang.String |
OPTION_ReportParameterAssignment |
static java.lang.String |
OPTION_ReportPossibleAccidentalBooleanAssignment |
static java.lang.String |
OPTION_ReportPotentiallyUnclosedCloseable |
static java.lang.String |
OPTION_ReportPotentialNullReference |
static java.lang.String |
OPTION_ReportRawTypeReference |
static java.lang.String |
OPTION_ReportRedundantNullAnnotation |
static java.lang.String |
OPTION_ReportRedundantNullCheck |
static java.lang.String |
OPTION_ReportRedundantSpecificationOfTypeArguments |
static java.lang.String |
OPTION_ReportRedundantSuperinterface |
static java.lang.String |
OPTION_ReportSpecialParameterHidingField |
static java.lang.String |
OPTION_ReportSwallowedExceptionInCatchBlock |
static java.lang.String |
OPTION_ReportSyntheticAccessEmulation |
static java.lang.String |
OPTION_ReportTasks |
static java.lang.String |
OPTION_ReportTypeParameterHiding |
static java.lang.String |
OPTION_ReportUnavoidableGenericTypeProblems |
static java.lang.String |
OPTION_ReportUncheckedTypeOperation |
static java.lang.String |
OPTION_ReportUnclosedCloseable |
static java.lang.String |
OPTION_ReportUndocumentedEmptyBlock |
static java.lang.String |
OPTION_ReportUnhandledWarningToken |
static java.lang.String |
OPTION_ReportUninternedIdentityComparison |
static java.lang.String |
OPTION_ReportUnnecessaryElse |
static java.lang.String |
OPTION_ReportUnnecessaryTypeCheck |
static java.lang.String |
OPTION_ReportUnqualifiedFieldAccess |
static java.lang.String |
OPTION_ReportUnusedDeclaredThrownException |
static java.lang.String |
OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable |
static java.lang.String |
OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference |
static java.lang.String |
OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding |
static java.lang.String |
OPTION_ReportUnusedExceptionParameter |
static java.lang.String |
OPTION_ReportUnusedImport |
static java.lang.String |
OPTION_ReportUnusedLabel |
static java.lang.String |
OPTION_ReportUnusedLocal |
static java.lang.String |
OPTION_ReportUnusedObjectAllocation |
static java.lang.String |
OPTION_ReportUnusedParameter |
static java.lang.String |
OPTION_ReportUnusedParameterIncludeDocCommentReference |
static java.lang.String |
OPTION_ReportUnusedParameterWhenImplementingAbstract |
static java.lang.String |
OPTION_ReportUnusedParameterWhenOverridingConcrete |
static java.lang.String |
OPTION_ReportUnusedPrivateMember |
static java.lang.String |
OPTION_ReportUnusedTypeArgumentsForMethodInvocation |
static java.lang.String |
OPTION_ReportUnusedTypeParameter |
static java.lang.String |
OPTION_ReportUnusedWarningToken |
static java.lang.String |
OPTION_ReportVarargsArgumentNeedCast |
static java.lang.String |
OPTION_ShareCommonFinallyBlocks |
static java.lang.String |
OPTION_Source |
static java.lang.String |
OPTION_SourceFileAttribute |
static java.lang.String |
OPTION_Store_Annotations |
static java.lang.String |
OPTION_SuppressOptionalErrors |
static java.lang.String |
OPTION_SuppressWarnings |
static java.lang.String |
OPTION_SyntacticNullAnalysisForFields |
static java.lang.String |
OPTION_TargetPlatform |
static java.lang.String |
OPTION_TaskCaseSensitive |
static java.lang.String |
OPTION_TaskPriorities |
static java.lang.String |
OPTION_TaskTags |
long |
originalComplianceLevel
Original compliance level for the compiler, refers to a JDK version, e.g.
|
long |
originalSourceLevel
Original Java source level, refers to a JDK version, e.g.
|
static int |
OverriddenPackageDefaultMethod |
static int |
OverridingMethodWithoutSuperInvocation |
static int |
ParameterAssignment |
boolean |
parseLiteralExpressionsAsConstants
Indicates whether literal expressions are inlined at parse-time or not
|
boolean |
performMethodsFullRecovery
Specify if parser should perform structural recovery in methods
|
boolean |
performStatementsRecovery
Specify if parser perform statements recovery
|
boolean |
postResolutionRawTypeCompatibilityCheck
extra check for raw type compatibility post overload resolution
|
static int |
PotentiallyUnclosedCloseable |
static int |
PotentialNullReference |
static java.lang.String |
PRESERVE |
boolean |
preserveAllLocalVariables
Indicates if unused/optimizable local variables need to be preserved (debugging purpose)
|
static java.lang.String |
PRIVATE |
boolean |
processAnnotations
Control whether annotation processing is enabled
|
int |
produceDebugAttributes
Classfile debug information, may contain source file name, line numbers, local variable tables, etc...
|
boolean |
produceMethodParameters
Classfile method patameters information as per JEP 118...
|
boolean |
produceReferenceInfo
Indicates whether reference info is desired
|
static java.lang.String |
PROTECTED |
static java.lang.String |
PUBLIC |
static int |
RawTypeReference |
static int |
RedundantNullAnnotation |
static int |
RedundantNullCheck |
static int |
RedundantSpecificationOfTypeArguments |
static int |
RedundantSuperinterface |
boolean |
reportDeadCodeInTrivialIfStatement
Specify whether trivial deadcode pattern is to be reported (e.g.
|
boolean |
reportDeprecationInsideDeprecatedCode
Specify whether deprecation inside deprecated code is to be reported
|
boolean |
reportDeprecationWhenOverridingDeprecatedMethod
Specify whether override of deprecated method is to be reported
|
boolean |
reportInvalidJavadocTags
Specify if invalid javadoc shall be reported
|
boolean |
reportInvalidJavadocTagsDeprecatedRef
Specify if deprecated javadoc ref is allowed
|
boolean |
reportInvalidJavadocTagsNotVisibleRef
Specify if non visible javadoc ref is allowed
|
int |
reportInvalidJavadocTagsVisibility
Only report invalid javadoc above a given level of visibility of associated construct
|
boolean |
reportMissingEnumCaseDespiteDefault
Should missing enum cases be reported even if a default case exists in the same switch?
|
boolean |
reportMissingJavadocCommentsOverriding
Specify if need to flag missing javadoc comment for overriding method
|
int |
reportMissingJavadocCommentsVisibility
Only report missing javadoc comment above a given level of visibility of associated construct
|
java.lang.String |
reportMissingJavadocTagDescription
Specify when to report missing javadoc tag description
|
boolean |
reportMissingJavadocTagsMethodTypeParameters
Specify if need to flag missing javadoc tags for method type parameters (java 1.5 and above)
|
boolean |
reportMissingJavadocTagsOverriding
Specify if need to flag missing javadoc tags for overriding method
|
int |
reportMissingJavadocTagsVisibility
Only report missing javadoc tags above a given level of visibility of associated construct
|
boolean |
reportMissingOverrideAnnotationForInterfaceMethodImplementation
Specify if need to report missing override annotation for a method implementing an interface method (java 1.6 and above)
|
boolean |
reportSpecialParameterHidingField
Specify whether should report constructor/setter method parameter hiding
|
boolean |
reportUnavoidableGenericTypeProblems
Controls whether forced generic type problems get reported
|
boolean |
reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
Specify if should reported unused declared thrown exception when Exception or Throwable
|
boolean |
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
Specify if should reported unused declared thrown exception when documented in javadoc
|
boolean |
reportUnusedDeclaredThrownExceptionWhenOverriding
Specify if should reported unused declared thrown exception when overriding method
|
boolean |
reportUnusedParameterIncludeDocCommentReference
Specify if should report documented unused parameter (in javadoc)
|
boolean |
reportUnusedParameterWhenImplementingAbstract
Specify if should report unused parameter when implementing abstract method
|
boolean |
reportUnusedParameterWhenOverridingConcrete
Specify if should report unused parameter when overriding concrete method
|
static java.lang.String |
RETURN_TAG |
boolean |
shareCommonFinallyBlocks
Indicate whether common escaping finally blocks should be shared
|
static int |
ShouldImplementHashcode |
long |
sourceLevel
Java source level, refers to a JDK version, e.g.
|
boolean |
storeAnnotations
Store annotations
|
boolean |
suppressOptionalErrors
Indicate if @SuppressWarning annotations should also suppress optional errors
|
boolean |
suppressWarnings
Indicate if @SuppressWarning annotations are activated
|
static int |
SwallowedExceptionInCatchBlock |
long |
targetJDK
VM target level, refers to a JDK version, e.g.
|
static int |
Task |
char[][] |
taskPriorities
Respective priorities of recognized task tags
|
static int |
Tasks |
char[][] |
taskTags
Tags used to recognize tasks in comments
|
static boolean |
tolerateIllegalAmbiguousVarargsInvocation
Should the compiler tolerate illegal ambiguous varargs invocation in compliance < 1.7
to be bug compatible with javac? (bug 383780)
|
boolean |
treatOptionalErrorAsFatal
Specify if should treat optional error as fatal or just like warning
|
static int |
TypeHiding |
static int |
UncheckedTypeOperation |
static int |
UnclosedCloseable |
static int |
UndocumentedEmptyBlock |
static int |
UnhandledWarningToken |
static int |
UnnecessaryElse |
static int |
UnnecessaryTypeCheck |
static int |
UnqualifiedFieldAccess |
static int |
UnusedArgument |
static int |
UnusedDeclaredThrownException |
static int |
UnusedExceptionParameter |
static int |
UnusedImport |
static int |
UnusedLabel |
static int |
UnusedLocalVariable |
static int |
UnusedObjectAllocation |
static int |
UnusedPrivateMember |
static int |
UnusedTypeArguments |
static int |
UnusedTypeParameter |
static int |
UnusedWarningToken |
java.lang.Boolean |
useNullTypeAnnotations
Not directly configurable, derived from other options by LookupEnvironment.usesNullTypeAnnotations()
|
static int |
UsingDeprecatedAPI |
static int |
VarargsArgumentNeedCast |
boolean |
verbose
Compiler trace verbosity
|
static java.lang.String |
VERSION_1_1 |
static java.lang.String |
VERSION_1_2 |
static java.lang.String |
VERSION_1_3 |
static java.lang.String |
VERSION_1_4 |
static java.lang.String |
VERSION_1_5 |
static java.lang.String |
VERSION_1_6 |
static java.lang.String |
VERSION_1_7 |
static java.lang.String |
VERSION_1_8 |
static java.lang.String |
VERSION_1_9 |
static java.lang.String |
VERSION_CLDC1_1 |
static java.lang.String |
VERSION_JSR14 |
static java.lang.String |
WARNING |
IrritantSet |
warningThreshold
Defaults defined at
IrritantSet.COMPILER_DEFAULT_WARNINGS |
static java.lang.String[] |
warningTokens |
| Constructor and Description |
|---|
CompilerOptions()
Initializing the compiler options with defaults
|
CompilerOptions(java.util.Map settings)
Initializing the compiler options with external settings
|
CompilerOptions(java.util.Map settings,
boolean parseLiteralExpressionsAsConstants)
Deprecated.
used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
getMap() |
int |
getSeverity(int irritant) |
java.lang.String |
getSeverityString(int irritant) |
java.lang.String |
getVisibilityString(int level) |
boolean |
isAnyEnabled(IrritantSet irritants) |
static java.lang.String |
optionKeyFromIrritant(int irritant)
Return the most specific option key controlling this irritant.
|
protected void |
resetDefaults() |
void |
set(java.util.Map optionsMap) |
java.lang.String |
toString() |
protected void |
updateSeverity(int irritant,
java.lang.Object severityString) |
boolean |
usesNullTypeAnnotations()
Note, if you have a LookupEnvironment you should instead ask
LookupEnvironment.usesNullTypeAnnotations(). |
static java.lang.String |
versionFromJdkLevel(long jdkLevel) |
static long |
versionToJdkLevel(java.lang.Object versionID) |
static java.lang.String[] |
warningOptionNames()
Return all warning option names for use as keys in compiler options maps.
|
static java.lang.String |
warningTokenFromIrritant(int irritant)
For suppressable warnings
|
static IrritantSet |
warningTokenToIrritants(java.lang.String warningToken) |
public static final java.lang.String OPTION_LocalVariableAttribute
public static final java.lang.String OPTION_LineNumberAttribute
public static final java.lang.String OPTION_SourceFileAttribute
public static final java.lang.String OPTION_PreserveUnusedLocal
public static final java.lang.String OPTION_MethodParametersAttribute
public static final java.lang.String OPTION_LambdaGenericSignature
public static final java.lang.String OPTION_DocCommentSupport
public static final java.lang.String OPTION_ReportMethodWithConstructorName
public static final java.lang.String OPTION_ReportOverridingPackageDefaultMethod
public static final java.lang.String OPTION_ReportDeprecation
public static final java.lang.String OPTION_ReportDeprecationInDeprecatedCode
public static final java.lang.String OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
public static final java.lang.String OPTION_ReportHiddenCatchBlock
public static final java.lang.String OPTION_ReportUnusedLocal
public static final java.lang.String OPTION_ReportUnusedParameter
public static final java.lang.String OPTION_ReportUnusedExceptionParameter
public static final java.lang.String OPTION_ReportUnusedParameterWhenImplementingAbstract
public static final java.lang.String OPTION_ReportUnusedParameterWhenOverridingConcrete
public static final java.lang.String OPTION_ReportUnusedParameterIncludeDocCommentReference
public static final java.lang.String OPTION_ReportUnusedImport
public static final java.lang.String OPTION_ReportSyntheticAccessEmulation
public static final java.lang.String OPTION_ReportNoEffectAssignment
public static final java.lang.String OPTION_ReportLocalVariableHiding
public static final java.lang.String OPTION_ReportSpecialParameterHidingField
public static final java.lang.String OPTION_ReportFieldHiding
public static final java.lang.String OPTION_ReportTypeParameterHiding
public static final java.lang.String OPTION_ReportPossibleAccidentalBooleanAssignment
public static final java.lang.String OPTION_ReportNonExternalizedStringLiteral
public static final java.lang.String OPTION_ReportIncompatibleNonInheritedInterfaceMethod
public static final java.lang.String OPTION_ReportUnusedPrivateMember
public static final java.lang.String OPTION_ReportNoImplicitStringConversion
public static final java.lang.String OPTION_ReportAssertIdentifier
public static final java.lang.String OPTION_ReportEnumIdentifier
public static final java.lang.String OPTION_ReportNonStaticAccessToStatic
public static final java.lang.String OPTION_ReportIndirectStaticAccess
public static final java.lang.String OPTION_ReportEmptyStatement
public static final java.lang.String OPTION_ReportUnnecessaryTypeCheck
public static final java.lang.String OPTION_ReportUnnecessaryElse
public static final java.lang.String OPTION_ReportUndocumentedEmptyBlock
public static final java.lang.String OPTION_ReportInvalidJavadoc
public static final java.lang.String OPTION_ReportInvalidJavadocTags
public static final java.lang.String OPTION_ReportInvalidJavadocTagsDeprecatedRef
public static final java.lang.String OPTION_ReportInvalidJavadocTagsNotVisibleRef
public static final java.lang.String OPTION_ReportInvalidJavadocTagsVisibility
public static final java.lang.String OPTION_ReportMissingJavadocTags
public static final java.lang.String OPTION_ReportMissingJavadocTagsVisibility
public static final java.lang.String OPTION_ReportMissingJavadocTagsOverriding
public static final java.lang.String OPTION_ReportMissingJavadocTagsMethodTypeParameters
public static final java.lang.String OPTION_ReportMissingJavadocComments
public static final java.lang.String OPTION_ReportMissingJavadocTagDescription
public static final java.lang.String OPTION_ReportMissingJavadocCommentsVisibility
public static final java.lang.String OPTION_ReportMissingJavadocCommentsOverriding
public static final java.lang.String OPTION_ReportFinallyBlockNotCompletingNormally
public static final java.lang.String OPTION_ReportUnusedDeclaredThrownException
public static final java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
public static final java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
public static final java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
public static final java.lang.String OPTION_ReportUnqualifiedFieldAccess
public static final java.lang.String OPTION_ReportUnavoidableGenericTypeProblems
public static final java.lang.String OPTION_ReportUncheckedTypeOperation
public static final java.lang.String OPTION_ReportRawTypeReference
public static final java.lang.String OPTION_ReportFinalParameterBound
public static final java.lang.String OPTION_ReportMissingSerialVersion
public static final java.lang.String OPTION_ReportVarargsArgumentNeedCast
public static final java.lang.String OPTION_ReportUnusedTypeArgumentsForMethodInvocation
public static final java.lang.String OPTION_Source
public static final java.lang.String OPTION_TargetPlatform
public static final java.lang.String OPTION_Compliance
public static final java.lang.String OPTION_Encoding
public static final java.lang.String OPTION_MaxProblemPerUnit
public static final java.lang.String OPTION_TaskTags
public static final java.lang.String OPTION_TaskPriorities
public static final java.lang.String OPTION_TaskCaseSensitive
public static final java.lang.String OPTION_InlineJsr
public static final java.lang.String OPTION_ShareCommonFinallyBlocks
public static final java.lang.String OPTION_ReportNullReference
public static final java.lang.String OPTION_ReportPotentialNullReference
public static final java.lang.String OPTION_ReportRedundantNullCheck
public static final java.lang.String OPTION_ReportAutoboxing
public static final java.lang.String OPTION_ReportAnnotationSuperInterface
public static final java.lang.String OPTION_ReportMissingOverrideAnnotation
public static final java.lang.String OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
public static final java.lang.String OPTION_ReportMissingDeprecatedAnnotation
public static final java.lang.String OPTION_ReportIncompleteEnumSwitch
public static final java.lang.String OPTION_ReportMissingEnumCaseDespiteDefault
public static final java.lang.String OPTION_ReportMissingDefaultCase
public static final java.lang.String OPTION_ReportForbiddenReference
public static final java.lang.String OPTION_ReportDiscouragedReference
public static final java.lang.String OPTION_SuppressWarnings
public static final java.lang.String OPTION_SuppressOptionalErrors
public static final java.lang.String OPTION_ReportUnhandledWarningToken
public static final java.lang.String OPTION_ReportUnusedTypeParameter
public static final java.lang.String OPTION_ReportUnusedWarningToken
public static final java.lang.String OPTION_ReportUnusedLabel
public static final java.lang.String OPTION_FatalOptionalError
public static final java.lang.String OPTION_ReportParameterAssignment
public static final java.lang.String OPTION_ReportFallthroughCase
public static final java.lang.String OPTION_ReportOverridingMethodWithoutSuperInvocation
public static final java.lang.String OPTION_GenerateClassFiles
public static final java.lang.String OPTION_Process_Annotations
public static final java.lang.String OPTION_Store_Annotations
public static final java.lang.String OPTION_EmulateJavacBug8031744
public static final java.lang.String OPTION_ReportRedundantSuperinterface
public static final java.lang.String OPTION_ReportComparingIdentical
public static final java.lang.String OPTION_ReportMissingSynchronizedOnInheritedMethod
public static final java.lang.String OPTION_ReportMissingHashCodeMethod
public static final java.lang.String OPTION_ReportDeadCode
public static final java.lang.String OPTION_ReportDeadCodeInTrivialIfStatement
public static final java.lang.String OPTION_ReportTasks
public static final java.lang.String OPTION_ReportUnusedObjectAllocation
public static final java.lang.String OPTION_IncludeNullInfoFromAsserts
public static final java.lang.String OPTION_ReportMethodCanBeStatic
public static final java.lang.String OPTION_ReportMethodCanBePotentiallyStatic
public static final java.lang.String OPTION_ReportRedundantSpecificationOfTypeArguments
public static final java.lang.String OPTION_ReportUnclosedCloseable
public static final java.lang.String OPTION_ReportPotentiallyUnclosedCloseable
public static final java.lang.String OPTION_ReportExplicitlyClosedAutoCloseable
public static final java.lang.String OPTION_ReportNullSpecViolation
public static final java.lang.String OPTION_ReportNullAnnotationInferenceConflict
public static final java.lang.String OPTION_ReportNullUncheckedConversion
public static final java.lang.String OPTION_ReportRedundantNullAnnotation
public static final java.lang.String OPTION_AnnotationBasedNullAnalysis
public static final java.lang.String OPTION_NullableAnnotationName
public static final java.lang.String OPTION_NonNullAnnotationName
public static final java.lang.String OPTION_NonNullByDefaultAnnotationName
public static final java.lang.String OPTION_ReportUninternedIdentityComparison
public static final java.lang.String OPTION_ReportMissingNonNullByDefaultAnnotation
public static final java.lang.String OPTION_SyntacticNullAnalysisForFields
public static final java.lang.String OPTION_InheritNullAnnotations
public static final java.lang.String OPTION_ReportNonnullParameterAnnotationDropped
public static final java.lang.String GENERATE
public static final java.lang.String DO_NOT_GENERATE
public static final java.lang.String PRESERVE
public static final java.lang.String OPTIMIZE_OUT
public static final java.lang.String VERSION_1_1
public static final java.lang.String VERSION_1_2
public static final java.lang.String VERSION_1_3
public static final java.lang.String VERSION_1_4
public static final java.lang.String VERSION_JSR14
public static final java.lang.String VERSION_CLDC1_1
public static final java.lang.String VERSION_1_5
public static final java.lang.String VERSION_1_6
public static final java.lang.String VERSION_1_7
public static final java.lang.String VERSION_1_8
public static final java.lang.String VERSION_1_9
public static final java.lang.String ERROR
public static final java.lang.String WARNING
public static final java.lang.String IGNORE
public static final java.lang.String ENABLED
public static final java.lang.String DISABLED
public static final java.lang.String PUBLIC
public static final java.lang.String PROTECTED
public static final java.lang.String DEFAULT
public static final java.lang.String PRIVATE
public static final java.lang.String RETURN_TAG
public static final java.lang.String NO_TAG
public static final java.lang.String ALL_STANDARD_TAGS
public static final int MethodWithConstructorName
public static final int OverriddenPackageDefaultMethod
public static final int UsingDeprecatedAPI
public static final int MaskedCatchBlock
public static final int UnusedLocalVariable
public static final int UnusedArgument
public static final int NoImplicitStringConversion
public static final int AccessEmulation
public static final int NonExternalizedString
public static final int AssertUsedAsAnIdentifier
public static final int UnusedImport
public static final int NonStaticAccessToStatic
public static final int Task
public static final int NoEffectAssignment
public static final int IncompatibleNonInheritedInterfaceMethod
public static final int UnusedPrivateMember
public static final int LocalVariableHiding
public static final int FieldHiding
public static final int AccidentalBooleanAssign
public static final int EmptyStatement
public static final int MissingJavadocComments
public static final int MissingJavadocTags
public static final int UnqualifiedFieldAccess
public static final int UnusedDeclaredThrownException
public static final int FinallyBlockNotCompleting
public static final int InvalidJavadoc
public static final int UnnecessaryTypeCheck
public static final int UndocumentedEmptyBlock
public static final int IndirectStaticAccess
public static final int UnnecessaryElse
public static final int UncheckedTypeOperation
public static final int FinalParameterBound
public static final int MissingSerialVersion
public static final int EnumUsedAsAnIdentifier
public static final int ForbiddenReference
public static final int VarargsArgumentNeedCast
public static final int NullReference
public static final int AutoBoxing
public static final int AnnotationSuperInterface
public static final int TypeHiding
public static final int MissingOverrideAnnotation
public static final int MissingEnumConstantCase
public static final int MissingDeprecatedAnnotation
public static final int DiscouragedReference
public static final int UnhandledWarningToken
public static final int RawTypeReference
public static final int UnusedLabel
public static final int ParameterAssignment
public static final int FallthroughCase
public static final int OverridingMethodWithoutSuperInvocation
public static final int PotentialNullReference
public static final int RedundantNullCheck
public static final int MissingJavadocTagDescription
public static final int UnusedTypeArguments
public static final int UnusedWarningToken
public static final int RedundantSuperinterface
public static final int ComparingIdentical
public static final int MissingSynchronizedModifierInInheritedMethod
public static final int ShouldImplementHashcode
public static final int DeadCode
public static final int Tasks
public static final int UnusedObjectAllocation
public static final int MethodCanBeStatic
public static final int MethodCanBePotentiallyStatic
public static final int RedundantSpecificationOfTypeArguments
public static final int UnclosedCloseable
public static final int PotentiallyUnclosedCloseable
public static final int ExplicitlyClosedAutoCloseable
public static final int NullSpecViolation
public static final int NullAnnotationInferenceConflict
public static final int NullUncheckedConversion
public static final int RedundantNullAnnotation
public static final int MissingNonNullByDefaultAnnotation
public static final int MissingDefaultCase
public static final int UnusedTypeParameter
public static final int NonnullParameterAnnotationDropped
public static final int UnusedExceptionParameter
public static final java.lang.String OPTION_ReportSwallowedExceptionInCatchBlock
public static final int SwallowedExceptionInCatchBlock
public IrritantSet errorThreshold
IrritantSet.COMPILER_DEFAULT_ERRORSresetDefaults()public IrritantSet warningThreshold
IrritantSet.COMPILER_DEFAULT_WARNINGSresetDefaults()public int produceDebugAttributes
public boolean produceMethodParameters
public boolean generateGenericSignatureForLambdaExpressions
public long complianceLevel
ClassFileConstants.JDK1_4public long originalComplianceLevel
ClassFileConstants.JDK1_4,
Usually same as the field complianceLevel, though the latter could deviate to create temporary sandbox
modes during reconcile operations. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=323633public long sourceLevel
ClassFileConstants.JDK1_4public long originalSourceLevel
ClassFileConstants.JDK1_4
Usually same as the field sourceLevel, though the latter could deviate to create temporary sandbox
modes during reconcile operations. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=323633public long targetJDK
ClassFileConstants.JDK1_4public java.lang.String defaultEncoding
public boolean verbose
public boolean produceReferenceInfo
public boolean preserveAllLocalVariables
public boolean parseLiteralExpressionsAsConstants
public int maxProblemsPerUnit
public char[][] taskTags
public char[][] taskPriorities
public boolean isTaskCaseSensitive
public boolean reportDeprecationInsideDeprecatedCode
public boolean reportDeprecationWhenOverridingDeprecatedMethod
public boolean reportUnusedParameterWhenImplementingAbstract
public boolean reportUnusedParameterWhenOverridingConcrete
public boolean reportUnusedParameterIncludeDocCommentReference
public boolean reportUnusedDeclaredThrownExceptionWhenOverriding
public boolean reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
public boolean reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
public boolean reportSpecialParameterHidingField
public boolean reportDeadCodeInTrivialIfStatement
public boolean docCommentSupport
public boolean reportInvalidJavadocTags
public int reportInvalidJavadocTagsVisibility
public boolean reportInvalidJavadocTagsDeprecatedRef
public boolean reportInvalidJavadocTagsNotVisibleRef
public java.lang.String reportMissingJavadocTagDescription
public int reportMissingJavadocTagsVisibility
public boolean reportMissingJavadocTagsOverriding
public boolean reportMissingJavadocTagsMethodTypeParameters
public int reportMissingJavadocCommentsVisibility
public boolean reportMissingJavadocCommentsOverriding
public boolean inlineJsrBytecode
public boolean shareCommonFinallyBlocks
public boolean suppressWarnings
public boolean suppressOptionalErrors
public boolean treatOptionalErrorAsFatal
public boolean performMethodsFullRecovery
public boolean performStatementsRecovery
public boolean processAnnotations
public boolean storeAnnotations
public boolean postResolutionRawTypeCompatibilityCheck
public boolean reportMissingOverrideAnnotationForInterfaceMethodImplementation
public boolean generateClassFiles
public boolean ignoreMethodBodies
public boolean includeNullInfoFromAsserts
public boolean reportUnavoidableGenericTypeProblems
public boolean ignoreSourceFolderWarningOption
public boolean isAnnotationBasedNullAnalysisEnabled
public char[][] nullableAnnotationName
public char[][] nonNullAnnotationName
public char[][] nonNullByDefaultAnnotationName
public long intendedDefaultNonNullness
public boolean analyseResourceLeaks
public boolean reportMissingEnumCaseDespiteDefault
public static boolean tolerateIllegalAmbiguousVarargsInvocation
public boolean inheritNullAnnotations
public boolean enableSyntacticNullAnalysisForFields
public boolean complainOnUninternedIdentityComparison
public boolean emulateJavacBug8031744
public java.lang.Boolean useNullTypeAnnotations
public static final java.lang.String[] warningTokens
public CompilerOptions()
public CompilerOptions(java.util.Map settings)
settings - public CompilerOptions(java.util.Map settings,
boolean parseLiteralExpressionsAsConstants)
public static java.lang.String optionKeyFromIrritant(int irritant)
public static java.lang.String versionFromJdkLevel(long jdkLevel)
public static long versionToJdkLevel(java.lang.Object versionID)
public static java.lang.String[] warningOptionNames()
public static java.lang.String warningTokenFromIrritant(int irritant)
public static IrritantSet warningTokenToIrritants(java.lang.String warningToken)
public java.util.Map getMap()
public int getSeverity(int irritant)
public java.lang.String getSeverityString(int irritant)
public java.lang.String getVisibilityString(int level)
public boolean isAnyEnabled(IrritantSet irritants)
protected void resetDefaults()
public void set(java.util.Map optionsMap)
public java.lang.String toString()
toString in class java.lang.Objectprotected void updateSeverity(int irritant,
java.lang.Object severityString)
public boolean usesNullTypeAnnotations()
LookupEnvironment.usesNullTypeAnnotations().