Class CompilerOptions
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final StringbooleanShould resources (objects of type Closeable) be analysed for matching calls to close()?static final intstatic final intstatic final intstatic final intstatic final intstatic final intbooleanlongCompliance level for the compiler, refers to a JDK version, e.g.static final intstatic final StringSource encoding formatstatic final Stringstatic final intstatic final StringbooleanMaster flag controlling whether doc comment should be processedstatic final intbooleanstatic final StringbooleanEnable a less restrictive compile mode for JDT debug.booleanMaster flag to enabled/disable all preview featuresbooleanShould immediate null-check for fields be considered during null analysis (syntactical match)?static final intstatic final StringDefaults defined atIrritantSet.COMPILER_DEFAULT_ERRORSstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final StringPossible values for configurable optionsbooleanIndicate if annotation processing generates classfilesbooleanIndicates whether generic signature should be generated for lambda expressionsstatic final StringbooleanIndicate if method bodies should be ignoredbooleanIndicates that the 'ignore optional problems from source folder' option need to be ignored See https://bugs.eclipse.org/bugs/show_bug.cgi?id=372377booleanShould the compiler ignore the unnamed module when a package is defined in both a named module and the unnamed module?booleanRaise null related warnings for variables tainted inside an assert statement (java 1.4 and above)static final intstatic final intstatic final intstatic final Stringprotected IrritantSetDefaults defined atIrritantSet.COMPILER_DEFAULT_INFOSbooleanShould null annotations of overridden methods be inherited?booleanIndicate whether the JSR bytecode should be inlined to avoid its presence in classfilestatic final intlongTagBits-encoded default for non-annotated types.static final intbooleanMaster switch for null analysis based on annotations:booleanShould an owning-annotation be evaluated for improved analysis of resource leaks?booleanIndicate whether tag detection is case sensitive or notstatic final intstatic final intintMax problems per compilation unitstatic final intstatic final intstatic final intBit 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 eachstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final intstatic final intstatic final intchar[][]Fully qualified name of annotation to use as marker for nonnull types.String[]Fully qualified names of secondary annotations to use as marker for nonnull types.char[][]Fully qualified name of annotation to use as marker for default nonnull.String[]Fully qualified names of secondary annotations to use as marker for default nonnull.static final intstatic final intstatic final intchar[][]Name of the annotation which the resource leak analysis will use as 'not-owning'char[][]Fully qualified name of annotation to use as marker for nullable types.String[]Fully qualified names of secondary annotations to use as marker for nullable types.static final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringOption IDsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringlongOriginal compliance level for the compiler, refers to a JDK version, e.g.longOriginal Java source level, refers to a JDK version, e.g.static final intstatic final intchar[][]Name of the annotation which the resource leak analysis will use as 'owning'static final intbooleanIndicates whether literal expressions are inlined at parse-time or notbooleanSpecify if parser should perform structural recovery in methodsbooleanSpecify if parser perform statements recoverystatic final intbooleanIs the error level for pessimistic null analysis for free type variables different from "ignore"?static final intstatic final intstatic final StringbooleanIndicates if unused/optimizable local variables need to be preserved (debugging purpose)static final intstatic final StringbooleanControl whether annotation processing is enabledintClassfile debug information, may contain source file name, line numbers, local variable tables, etc...booleanClassfile method parameters information as per JEP 118...booleanIndicates whether reference info is desiredstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intbooleanSpecify whether trivial deadcode pattern is to be reported (e.g.booleanSpecify whether deprecation inside deprecated code is to be reportedbooleanSpecify whether override of deprecated method is to be reportedbooleanSpecify if invalid javadoc shall be reportedbooleanSpecify if deprecated javadoc ref is allowedbooleanSpecify if non visible javadoc ref is allowedintOnly report invalid javadoc above a given level of visibility of associated constructbooleanShould missing enum cases be reported even if a default case exists in the same switch?booleanSpecify if need to flag missing javadoc comment for overriding methodintOnly report missing javadoc comment above a given level of visibility of associated constructSpecify when to report missing javadoc tag descriptionbooleanSpecify if need to flag missing javadoc tags for method type parameters (java 1.5 and above)booleanSpecify if need to flag missing javadoc tags for overriding methodintOnly report missing javadoc tags above a given level of visibility of associated constructbooleanSpecify if need to report missing override annotation for a method implementing an interface method (java 1.6 and above)booleanSpecify whether should report constructor/setter method parameter hidingbooleanControls whether forced generic type problems get reportedbooleanWhen checking for unlikely argument types of of Map.get() et al, perform strict analysis against the expected typebooleanSpecify if should reported unused declared thrown exception when Exception or ThrowablebooleanSpecify if should reported unused declared thrown exception when documented in javadocbooleanSpecify if should reported unused declared thrown exception when overriding methodbooleanSpecify if should report documented unused parameter (in javadoc)booleanSpecify if should report unused parameter when implementing abstract methodbooleanSpecify if should report unused parameter when overriding concrete methodstatic final StringbooleanIndicate whether common escaping finally blocks should be sharedstatic final intlongJava source level, refers to a JDK version, e.g.booleanStore annotationsbooleanIndicate if @SuppressWarning annotations should also suppress optional errorsbooleanIndicate if @SuppressWarning annotations are activatedstatic final intstatic final intlongVM target level, refers to a JDK version, e.g.static final intchar[][]Respective priorities of recognized task tagsstatic final intchar[][]Tags used to recognize tasks in commentsstatic booleanShould the compiler tolerate illegal ambiguous varargs invocation incompliance < 1.7to be bug compatible with javac? (bug 383780)booleanSpecify if should treat optional error as fatal or just like warningstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intNot directly configurable, derived from other options by LookupEnvironment.usesNullTypeAnnotations()Not directly configurable, derived from other options by LookupEnvironment.usesOwningAnnotation()booleanShould the compiler use the StringConcatFactory for String concatenation expressions in the produced binarystatic final intstatic final intstatic final intbooleanCompiler trace verbositystatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDefaults defined atIrritantSet.COMPILER_DEFAULT_WARNINGSstatic final String[] -
Constructor Summary
ConstructorsConstructorDescriptionInitializing the compiler options with defaultsCompilerOptions(Map<String, String> settings) Initializing the compiler options with external settingsCompilerOptions(Map<String, String> settings, boolean parseLiteralExpressionsAsConstants) Deprecated.used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIgnoredIrritant(IrritantSet irritants) static StringReturn the latest Java language version supported by the Eclipse compilergetMap()intgetSeverity(int irritant) getSeverityString(int irritant) getVisibilityString(int level) booleanisAnyEnabled(IrritantSet irritants) static StringoptionKeyFromIrritant(int irritant) Return the most specific option key controlling this irritant.static longreleaseToJDKLevel(String release) protected voidvoidtoString()protected voidupdateSeverity(int irritant, Object severityString) booleanNote, if you have a LookupEnvironment you should instead askLookupEnvironment.usesNullTypeAnnotations().static StringversionFromJdkLevel(long jdkLevel) static longversionToJdkLevel(String versionID) static longversionToJdkLevel(String versionID, boolean supportUnreleased) static String[]Return all warning option names for use as keys in compiler options maps.static StringwarningTokenFromIrritant(int irritant) For suppressable warningsstatic IrritantSetwarningTokenToIrritants(String warningToken)
-
Field Details
-
OPTION_LocalVariableAttribute
-
OPTION_LineNumberAttribute
- See Also:
-
OPTION_SourceFileAttribute
- See Also:
-
OPTION_PreserveUnusedLocal
- See Also:
-
OPTION_MethodParametersAttribute
- See Also:
-
OPTION_LambdaGenericSignature
- See Also:
-
OPTION_DocCommentSupport
- See Also:
-
OPTION_ReportMethodWithConstructorName
- See Also:
-
OPTION_ReportOverridingPackageDefaultMethod
- See Also:
-
OPTION_ReportDeprecation
- See Also:
-
OPTION_ReportTerminalDeprecation
- See Also:
-
OPTION_ReportDeprecationInDeprecatedCode
- See Also:
-
OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
- See Also:
-
OPTION_ReportHiddenCatchBlock
- See Also:
-
OPTION_ReportUnusedLocal
- See Also:
-
OPTION_ReportUnusedParameter
- See Also:
-
OPTION_ReportUnusedExceptionParameter
- See Also:
-
OPTION_ReportUnusedParameterWhenImplementingAbstract
- See Also:
-
OPTION_ReportUnusedParameterWhenOverridingConcrete
- See Also:
-
OPTION_ReportUnusedParameterIncludeDocCommentReference
- See Also:
-
OPTION_ReportUnusedImport
- See Also:
-
OPTION_ReportSyntheticAccessEmulation
- See Also:
-
OPTION_ReportNoEffectAssignment
- See Also:
-
OPTION_ReportLocalVariableHiding
- See Also:
-
OPTION_ReportSpecialParameterHidingField
- See Also:
-
OPTION_ReportFieldHiding
- See Also:
-
OPTION_ReportTypeParameterHiding
- See Also:
-
OPTION_ReportPossibleAccidentalBooleanAssignment
- See Also:
-
OPTION_ReportNonExternalizedStringLiteral
- See Also:
-
OPTION_ReportIncompatibleNonInheritedInterfaceMethod
- See Also:
-
OPTION_ReportUnusedPrivateMember
- See Also:
-
OPTION_ReportNoImplicitStringConversion
- See Also:
-
OPTION_ReportAssertIdentifier
- See Also:
-
OPTION_ReportEnumIdentifier
- See Also:
-
OPTION_ReportNonStaticAccessToStatic
- See Also:
-
OPTION_ReportIndirectStaticAccess
- See Also:
-
OPTION_ReportEmptyStatement
- See Also:
-
OPTION_ReportUnnecessaryTypeCheck
- See Also:
-
OPTION_ReportUnnecessaryElse
- See Also:
-
OPTION_ReportUndocumentedEmptyBlock
- See Also:
-
OPTION_ReportInvalidJavadoc
- See Also:
-
OPTION_ReportInvalidJavadocTags
- See Also:
-
OPTION_ReportInvalidJavadocTagsDeprecatedRef
- See Also:
-
OPTION_ReportInvalidJavadocTagsNotVisibleRef
- See Also:
-
OPTION_ReportInvalidJavadocTagsVisibility
- See Also:
-
OPTION_ReportMissingJavadocTags
- See Also:
-
OPTION_ReportMissingJavadocTagsVisibility
- See Also:
-
OPTION_ReportMissingJavadocTagsOverriding
- See Also:
-
OPTION_ReportMissingJavadocTagsMethodTypeParameters
- See Also:
-
OPTION_ReportMissingJavadocComments
- See Also:
-
OPTION_ReportMissingJavadocTagDescription
- See Also:
-
OPTION_ReportMissingJavadocCommentsVisibility
- See Also:
-
OPTION_ReportMissingJavadocCommentsOverriding
- See Also:
-
OPTION_ReportFinallyBlockNotCompletingNormally
- See Also:
-
OPTION_ReportUnusedDeclaredThrownException
- See Also:
-
OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
- See Also:
-
OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
- See Also:
-
OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
- See Also:
-
OPTION_ReportUnqualifiedFieldAccess
- See Also:
-
OPTION_ReportUncheckedTypeOperation
- See Also:
-
OPTION_ReportRawTypeReference
- See Also:
-
OPTION_ReportFinalParameterBound
- See Also:
-
OPTION_ReportMissingSerialVersion
- See Also:
-
OPTION_ReportVarargsArgumentNeedCast
- See Also:
-
OPTION_ReportUnusedTypeArgumentsForMethodInvocation
- See Also:
-
OPTION_Source
- See Also:
-
OPTION_TargetPlatform
- See Also:
-
OPTION_Compliance
- See Also:
-
OPTION_Release
- See Also:
-
OPTION_Encoding
- See Also:
-
OPTION_MaxProblemPerUnit
- See Also:
-
OPTION_TaskTags
- See Also:
-
OPTION_TaskPriorities
- See Also:
-
OPTION_TaskCaseSensitive
- See Also:
-
OPTION_InlineJsr
- See Also:
-
OPTION_ReportNullReference
- See Also:
-
OPTION_ReportPotentialNullReference
- See Also:
-
OPTION_ReportRedundantNullCheck
- See Also:
-
OPTION_ReportAutoboxing
- See Also:
-
OPTION_ReportAnnotationSuperInterface
- See Also:
-
OPTION_ReportMissingOverrideAnnotation
- See Also:
-
OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
- See Also:
-
OPTION_ReportMissingDeprecatedAnnotation
- See Also:
-
OPTION_ReportIncompleteEnumSwitch
- See Also:
-
OPTION_ReportMissingEnumCaseDespiteDefault
- See Also:
-
OPTION_ReportMissingDefaultCase
- See Also:
-
OPTION_ReportForbiddenReference
- See Also:
-
OPTION_ReportDiscouragedReference
- See Also:
-
OPTION_SuppressWarnings
- See Also:
-
OPTION_SuppressOptionalErrors
- See Also:
-
OPTION_ReportUnhandledWarningToken
- See Also:
-
OPTION_ReportUnusedTypeParameter
- See Also:
-
OPTION_ReportUnusedWarningToken
- See Also:
-
OPTION_ReportUnusedLabel
- See Also:
-
OPTION_FatalOptionalError
- See Also:
-
OPTION_ReportParameterAssignment
- See Also:
-
OPTION_ReportFallthroughCase
- See Also:
-
OPTION_ReportOverridingMethodWithoutSuperInvocation
- See Also:
-
OPTION_GenerateClassFiles
- See Also:
-
OPTION_Process_Annotations
- See Also:
-
OPTION_Store_Annotations
- See Also:
-
OPTION_EmulateJavacBug8031744
- See Also:
-
OPTION_ReportRedundantSuperinterface
- See Also:
-
OPTION_ReportComparingIdentical
- See Also:
-
OPTION_ReportMissingSynchronizedOnInheritedMethod
- See Also:
-
OPTION_ReportMissingHashCodeMethod
- See Also:
-
OPTION_ReportDeadCode
- See Also:
-
OPTION_ReportDeadCodeInTrivialIfStatement
- See Also:
-
OPTION_ReportTasks
- See Also:
-
OPTION_ReportUnusedObjectAllocation
- See Also:
-
OPTION_IncludeNullInfoFromAsserts
- See Also:
-
OPTION_ReportMethodCanBeStatic
- See Also:
-
OPTION_ReportMethodCanBePotentiallyStatic
- See Also:
-
OPTION_ReportRedundantSpecificationOfTypeArguments
- See Also:
-
OPTION_ReportUnclosedCloseable
- See Also:
-
OPTION_ReportPotentiallyUnclosedCloseable
- See Also:
-
OPTION_ReportExplicitlyClosedAutoCloseable
- See Also:
-
OPTION_ReportInsufficientResourceManagement
- See Also:
-
OPTION_ReportIncompatibleOwningContract
- See Also:
-
OPTION_AnnotationBasedResourceAnalysis
- See Also:
-
OPTION_OwningAnnotationName
- See Also:
-
OPTION_NotOwningAnnotationName
- See Also:
-
OPTION_ReportNullSpecViolation
- See Also:
-
OPTION_ReportNullAnnotationInferenceConflict
- See Also:
-
OPTION_ReportNullUncheckedConversion
- See Also:
-
OPTION_ReportRedundantNullAnnotation
- See Also:
-
OPTION_AnnotationBasedNullAnalysis
- See Also:
-
OPTION_NullableAnnotationName
- See Also:
-
OPTION_NonNullAnnotationName
- See Also:
-
OPTION_NonNullByDefaultAnnotationName
- See Also:
-
OPTION_NullableAnnotationSecondaryNames
- See Also:
-
OPTION_NonNullAnnotationSecondaryNames
- See Also:
-
OPTION_NonNullByDefaultAnnotationSecondaryNames
- See Also:
-
OPTION_ReportUninternedIdentityComparison
- See Also:
-
OPTION_ReportMissingNonNullByDefaultAnnotation
- See Also:
-
OPTION_SyntacticNullAnalysisForFields
- See Also:
-
OPTION_InheritNullAnnotations
- See Also:
-
OPTION_ReportNonnullParameterAnnotationDropped
- See Also:
-
OPTION_PessimisticNullAnalysisForFreeTypeVariables
- See Also:
-
OPTION_ReportNonNullTypeVariableFromLegacyInvocation
- See Also:
-
OPTION_ReportAnnotatedTypeArgumentToUnannotated
- See Also:
-
OPTION_ReportUnlikelyCollectionMethodArgumentType
- See Also:
-
OPTION_ReportUnlikelyCollectionMethodArgumentTypeStrict
- See Also:
-
OPTION_ReportUnlikelyEqualsArgumentType
- See Also:
-
OPTION_ReportAPILeak
- See Also:
-
OPTION_ReportUnstableAutoModuleName
- See Also:
-
OPTION_EnablePreviews
- See Also:
-
OPTION_ReportPreviewFeatures
- See Also:
-
OPTION_ReportSuppressWarningNotFullyAnalysed
- See Also:
-
OPTION_JdtDebugCompileMode
- See Also:
-
OPTION_IgnoreUnnamedModuleForSplitPackage
- See Also:
-
OPTION_UseStringConcatFactory
- See Also:
-
GENERATE
-
DO_NOT_GENERATE
- See Also:
-
PRESERVE
- See Also:
-
OPTIMIZE_OUT
- See Also:
-
VERSION_1_1
- See Also:
-
VERSION_1_2
- See Also:
-
VERSION_1_3
- See Also:
-
VERSION_1_4
- See Also:
-
VERSION_JSR14
- See Also:
-
VERSION_CLDC1_1
- See Also:
-
VERSION_1_5
- See Also:
-
VERSION_1_6
- See Also:
-
VERSION_1_7
- See Also:
-
VERSION_1_8
- See Also:
-
VERSION_9
- See Also:
-
VERSION_10
- See Also:
-
VERSION_11
- See Also:
-
VERSION_12
- See Also:
-
VERSION_13
- See Also:
-
VERSION_14
- See Also:
-
VERSION_15
- See Also:
-
VERSION_16
- See Also:
-
VERSION_17
- See Also:
-
VERSION_18
- See Also:
-
VERSION_19
- See Also:
-
VERSION_20
- See Also:
-
VERSION_21
- See Also:
-
VERSION_22
- See Also:
-
ERROR
- See Also:
-
WARNING
- See Also:
-
INFO
- See Also:
-
IGNORE
- See Also:
-
ENABLED
- See Also:
-
DISABLED
- See Also:
-
PUBLIC
- See Also:
-
PROTECTED
- See Also:
-
DEFAULT
- See Also:
-
PRIVATE
- See Also:
-
RETURN_TAG
- See Also:
-
NO_TAG
- See Also:
-
ALL_STANDARD_TAGS
- See Also:
-
MethodWithConstructorName
public static final int MethodWithConstructorNameBit 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- See Also:
-
OverriddenPackageDefaultMethod
public static final int OverriddenPackageDefaultMethod- See Also:
-
UsingDeprecatedAPI
public static final int UsingDeprecatedAPI- See Also:
-
MaskedCatchBlock
public static final int MaskedCatchBlock- See Also:
-
UnusedLocalVariable
public static final int UnusedLocalVariable- See Also:
-
UnusedArgument
public static final int UnusedArgument- See Also:
-
NoImplicitStringConversion
public static final int NoImplicitStringConversion- See Also:
-
AccessEmulation
public static final int AccessEmulation- See Also:
-
NonExternalizedString
public static final int NonExternalizedString- See Also:
-
AssertUsedAsAnIdentifier
public static final int AssertUsedAsAnIdentifier- See Also:
-
UnusedImport
public static final int UnusedImport- See Also:
-
NonStaticAccessToStatic
public static final int NonStaticAccessToStatic- See Also:
-
Task
public static final int Task- See Also:
-
NoEffectAssignment
public static final int NoEffectAssignment- See Also:
-
IncompatibleNonInheritedInterfaceMethod
public static final int IncompatibleNonInheritedInterfaceMethod- See Also:
-
UnusedPrivateMember
public static final int UnusedPrivateMember- See Also:
-
LocalVariableHiding
public static final int LocalVariableHiding- See Also:
-
FieldHiding
public static final int FieldHiding- See Also:
-
AccidentalBooleanAssign
public static final int AccidentalBooleanAssign- See Also:
-
EmptyStatement
public static final int EmptyStatement- See Also:
-
MissingJavadocComments
public static final int MissingJavadocComments- See Also:
-
MissingJavadocTags
public static final int MissingJavadocTags- See Also:
-
UnqualifiedFieldAccess
public static final int UnqualifiedFieldAccess- See Also:
-
UnusedDeclaredThrownException
public static final int UnusedDeclaredThrownException- See Also:
-
FinallyBlockNotCompleting
public static final int FinallyBlockNotCompleting- See Also:
-
InvalidJavadoc
public static final int InvalidJavadoc- See Also:
-
UnnecessaryTypeCheck
public static final int UnnecessaryTypeCheck- See Also:
-
UndocumentedEmptyBlock
public static final int UndocumentedEmptyBlock- See Also:
-
IndirectStaticAccess
public static final int IndirectStaticAccess- See Also:
-
UnnecessaryElse
public static final int UnnecessaryElse- See Also:
-
UncheckedTypeOperation
public static final int UncheckedTypeOperation- See Also:
-
FinalParameterBound
public static final int FinalParameterBound- See Also:
-
MissingSerialVersion
public static final int MissingSerialVersion- See Also:
-
EnumUsedAsAnIdentifier
public static final int EnumUsedAsAnIdentifier- See Also:
-
ForbiddenReference
public static final int ForbiddenReference- See Also:
-
VarargsArgumentNeedCast
public static final int VarargsArgumentNeedCast- See Also:
-
NullReference
public static final int NullReference- See Also:
-
AutoBoxing
public static final int AutoBoxing- See Also:
-
AnnotationSuperInterface
public static final int AnnotationSuperInterface- See Also:
-
TypeHiding
public static final int TypeHiding- See Also:
-
MissingOverrideAnnotation
public static final int MissingOverrideAnnotation- See Also:
-
MissingEnumConstantCase
public static final int MissingEnumConstantCase- See Also:
-
MissingDeprecatedAnnotation
public static final int MissingDeprecatedAnnotation- See Also:
-
DiscouragedReference
public static final int DiscouragedReference- See Also:
-
UnhandledWarningToken
public static final int UnhandledWarningToken- See Also:
-
RawTypeReference
public static final int RawTypeReference- See Also:
-
UnusedLabel
public static final int UnusedLabel- See Also:
-
ParameterAssignment
public static final int ParameterAssignment- See Also:
-
FallthroughCase
public static final int FallthroughCase- See Also:
-
OverridingMethodWithoutSuperInvocation
public static final int OverridingMethodWithoutSuperInvocation- See Also:
-
PotentialNullReference
public static final int PotentialNullReference- See Also:
-
RedundantNullCheck
public static final int RedundantNullCheck- See Also:
-
MissingJavadocTagDescription
public static final int MissingJavadocTagDescription- See Also:
-
UnusedTypeArguments
public static final int UnusedTypeArguments- See Also:
-
UnusedWarningToken
public static final int UnusedWarningToken- See Also:
-
RedundantSuperinterface
public static final int RedundantSuperinterface- See Also:
-
ComparingIdentical
public static final int ComparingIdentical- See Also:
-
MissingSynchronizedModifierInInheritedMethod
public static final int MissingSynchronizedModifierInInheritedMethod- See Also:
-
ShouldImplementHashcode
public static final int ShouldImplementHashcode- See Also:
-
DeadCode
public static final int DeadCode- See Also:
-
Tasks
public static final int Tasks- See Also:
-
UnusedObjectAllocation
public static final int UnusedObjectAllocation- See Also:
-
MethodCanBeStatic
public static final int MethodCanBeStatic- See Also:
-
MethodCanBePotentiallyStatic
public static final int MethodCanBePotentiallyStatic- See Also:
-
RedundantSpecificationOfTypeArguments
public static final int RedundantSpecificationOfTypeArguments- See Also:
-
UnclosedCloseable
public static final int UnclosedCloseable- See Also:
-
PotentiallyUnclosedCloseable
public static final int PotentiallyUnclosedCloseable- See Also:
-
ExplicitlyClosedAutoCloseable
public static final int ExplicitlyClosedAutoCloseable- See Also:
-
NullSpecViolation
public static final int NullSpecViolation- See Also:
-
NullAnnotationInferenceConflict
public static final int NullAnnotationInferenceConflict- See Also:
-
NullUncheckedConversion
public static final int NullUncheckedConversion- See Also:
-
RedundantNullAnnotation
public static final int RedundantNullAnnotation- See Also:
-
MissingNonNullByDefaultAnnotation
public static final int MissingNonNullByDefaultAnnotation- See Also:
-
MissingDefaultCase
public static final int MissingDefaultCase- See Also:
-
UnusedTypeParameter
public static final int UnusedTypeParameter- See Also:
-
NonnullParameterAnnotationDropped
public static final int NonnullParameterAnnotationDropped- See Also:
-
UnusedExceptionParameter
public static final int UnusedExceptionParameter- See Also:
-
PessimisticNullAnalysisForFreeTypeVariables
public static final int PessimisticNullAnalysisForFreeTypeVariables- See Also:
-
NonNullTypeVariableFromLegacyInvocation
public static final int NonNullTypeVariableFromLegacyInvocation- See Also:
-
UnlikelyCollectionMethodArgumentType
public static final int UnlikelyCollectionMethodArgumentType- See Also:
-
UnlikelyEqualsArgumentType
public static final int UnlikelyEqualsArgumentType- See Also:
-
UsingTerminallyDeprecatedAPI
public static final int UsingTerminallyDeprecatedAPI- See Also:
-
APILeak
public static final int APILeak- See Also:
-
UnstableAutoModuleName
public static final int UnstableAutoModuleName- See Also:
-
PreviewFeatureUsed
public static final int PreviewFeatureUsed- See Also:
-
SuppressWarningsNotAnalysed
public static final int SuppressWarningsNotAnalysed- See Also:
-
AnnotatedTypeArgumentToUnannotated
public static final int AnnotatedTypeArgumentToUnannotated- See Also:
-
OPTION_ReportSwallowedExceptionInCatchBlock
- See Also:
-
SwallowedExceptionInCatchBlock
public static final int SwallowedExceptionInCatchBlock- See Also:
-
InsufficientResourceManagement
public static final int InsufficientResourceManagement- See Also:
-
IncompatibleOwningContract
public static final int IncompatibleOwningContract- See Also:
-
errorThreshold
-
warningThreshold
Defaults defined atIrritantSet.COMPILER_DEFAULT_WARNINGS- See Also:
-
infoThreshold
Defaults defined atIrritantSet.COMPILER_DEFAULT_INFOS- See Also:
-
produceDebugAttributes
public int produceDebugAttributesClassfile debug information, may contain source file name, line numbers, local variable tables, etc... -
produceMethodParameters
public boolean produceMethodParametersClassfile method parameters information as per JEP 118... -
generateGenericSignatureForLambdaExpressions
public boolean generateGenericSignatureForLambdaExpressionsIndicates whether generic signature should be generated for lambda expressions -
complianceLevel
public long complianceLevelCompliance level for the compiler, refers to a JDK version, e.g.ClassFileConstants.JDK1_4 -
originalComplianceLevel
public long originalComplianceLevelOriginal compliance level for the compiler, refers to a JDK version, e.g.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=323633 -
sourceLevel
public long sourceLevelJava source level, refers to a JDK version, e.g.ClassFileConstants.JDK1_4 -
originalSourceLevel
public long originalSourceLevelOriginal Java source level, refers to a JDK version, e.g.ClassFileConstants.JDK1_4Usually 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=323633 -
targetJDK
public long targetJDKVM target level, refers to a JDK version, e.g.ClassFileConstants.JDK1_4 -
defaultEncoding
Source encoding format -
verbose
public boolean verboseCompiler trace verbosity -
produceReferenceInfo
public boolean produceReferenceInfoIndicates whether reference info is desired -
preserveAllLocalVariables
public boolean preserveAllLocalVariablesIndicates if unused/optimizable local variables need to be preserved (debugging purpose) -
parseLiteralExpressionsAsConstants
public boolean parseLiteralExpressionsAsConstantsIndicates whether literal expressions are inlined at parse-time or not -
maxProblemsPerUnit
public int maxProblemsPerUnitMax problems per compilation unit -
taskTags
public char[][] taskTagsTags used to recognize tasks in comments -
taskPriorities
public char[][] taskPrioritiesRespective priorities of recognized task tags -
isTaskCaseSensitive
public boolean isTaskCaseSensitiveIndicate whether tag detection is case sensitive or not -
reportDeprecationInsideDeprecatedCode
public boolean reportDeprecationInsideDeprecatedCodeSpecify whether deprecation inside deprecated code is to be reported -
reportDeprecationWhenOverridingDeprecatedMethod
public boolean reportDeprecationWhenOverridingDeprecatedMethodSpecify whether override of deprecated method is to be reported -
reportUnusedParameterWhenImplementingAbstract
public boolean reportUnusedParameterWhenImplementingAbstractSpecify if should report unused parameter when implementing abstract method -
reportUnusedParameterWhenOverridingConcrete
public boolean reportUnusedParameterWhenOverridingConcreteSpecify if should report unused parameter when overriding concrete method -
reportUnusedParameterIncludeDocCommentReference
public boolean reportUnusedParameterIncludeDocCommentReferenceSpecify if should report documented unused parameter (in javadoc) -
reportUnusedDeclaredThrownExceptionWhenOverriding
public boolean reportUnusedDeclaredThrownExceptionWhenOverridingSpecify if should reported unused declared thrown exception when overriding method -
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
public boolean reportUnusedDeclaredThrownExceptionIncludeDocCommentReferenceSpecify if should reported unused declared thrown exception when documented in javadoc -
reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
public boolean reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowableSpecify if should reported unused declared thrown exception when Exception or Throwable -
reportSpecialParameterHidingField
public boolean reportSpecialParameterHidingFieldSpecify whether should report constructor/setter method parameter hiding -
reportDeadCodeInTrivialIfStatement
public boolean reportDeadCodeInTrivialIfStatementSpecify whether trivial deadcode pattern is to be reported (e.g. if (DEBUG) ...) -
docCommentSupport
public boolean docCommentSupportMaster flag controlling whether doc comment should be processed -
reportInvalidJavadocTags
public boolean reportInvalidJavadocTagsSpecify if invalid javadoc shall be reported -
reportInvalidJavadocTagsVisibility
public int reportInvalidJavadocTagsVisibilityOnly report invalid javadoc above a given level of visibility of associated construct -
reportInvalidJavadocTagsDeprecatedRef
public boolean reportInvalidJavadocTagsDeprecatedRefSpecify if deprecated javadoc ref is allowed -
reportInvalidJavadocTagsNotVisibleRef
public boolean reportInvalidJavadocTagsNotVisibleRefSpecify if non visible javadoc ref is allowed -
reportMissingJavadocTagDescription
Specify when to report missing javadoc tag description -
reportMissingJavadocTagsVisibility
public int reportMissingJavadocTagsVisibilityOnly report missing javadoc tags above a given level of visibility of associated construct -
reportMissingJavadocTagsOverriding
public boolean reportMissingJavadocTagsOverridingSpecify if need to flag missing javadoc tags for overriding method -
reportMissingJavadocTagsMethodTypeParameters
public boolean reportMissingJavadocTagsMethodTypeParametersSpecify if need to flag missing javadoc tags for method type parameters (java 1.5 and above) -
reportMissingJavadocCommentsVisibility
public int reportMissingJavadocCommentsVisibilityOnly report missing javadoc comment above a given level of visibility of associated construct -
reportMissingJavadocCommentsOverriding
public boolean reportMissingJavadocCommentsOverridingSpecify if need to flag missing javadoc comment for overriding method -
inlineJsrBytecode
public boolean inlineJsrBytecodeIndicate whether the JSR bytecode should be inlined to avoid its presence in classfile -
suppressWarnings
public boolean suppressWarningsIndicate if @SuppressWarning annotations are activated -
suppressOptionalErrors
public boolean suppressOptionalErrorsIndicate if @SuppressWarning annotations should also suppress optional errors -
treatOptionalErrorAsFatal
public boolean treatOptionalErrorAsFatalSpecify if should treat optional error as fatal or just like warning -
performMethodsFullRecovery
public boolean performMethodsFullRecoverySpecify if parser should perform structural recovery in methods -
performStatementsRecovery
public boolean performStatementsRecoverySpecify if parser perform statements recovery -
processAnnotations
public boolean processAnnotationsControl whether annotation processing is enabled -
storeAnnotations
public boolean storeAnnotationsStore annotations -
reportMissingOverrideAnnotationForInterfaceMethodImplementation
public boolean reportMissingOverrideAnnotationForInterfaceMethodImplementationSpecify if need to report missing override annotation for a method implementing an interface method (java 1.6 and above) -
generateClassFiles
public boolean generateClassFilesIndicate if annotation processing generates classfiles -
ignoreMethodBodies
public boolean ignoreMethodBodiesIndicate if method bodies should be ignored -
includeNullInfoFromAsserts
public boolean includeNullInfoFromAssertsRaise null related warnings for variables tainted inside an assert statement (java 1.4 and above) -
ignoreSourceFolderWarningOption
public boolean ignoreSourceFolderWarningOptionIndicates that the 'ignore optional problems from source folder' option need to be ignored See https://bugs.eclipse.org/bugs/show_bug.cgi?id=372377 -
isAnnotationBasedNullAnalysisEnabled
public boolean isAnnotationBasedNullAnalysisEnabledMaster switch for null analysis based on annotations: -
nullableAnnotationName
public char[][] nullableAnnotationNameFully qualified name of annotation to use as marker for nullable types. -
nonNullAnnotationName
public char[][] nonNullAnnotationNameFully qualified name of annotation to use as marker for nonnull types. -
nonNullByDefaultAnnotationName
public char[][] nonNullByDefaultAnnotationNameFully qualified name of annotation to use as marker for default nonnull. -
nullableAnnotationSecondaryNames
Fully qualified names of secondary annotations to use as marker for nullable types. -
nonNullAnnotationSecondaryNames
Fully qualified names of secondary annotations to use as marker for nonnull types. -
nonNullByDefaultAnnotationSecondaryNames
Fully qualified names of secondary annotations to use as marker for default nonnull. -
intendedDefaultNonNullness
public long intendedDefaultNonNullnessTagBits-encoded default for non-annotated types. -
analyseResourceLeaks
public boolean analyseResourceLeaksShould resources (objects of type Closeable) be analysed for matching calls to close()? -
isAnnotationBasedResourceAnalysisEnabled
public boolean isAnnotationBasedResourceAnalysisEnabledShould an owning-annotation be evaluated for improved analysis of resource leaks? -
owningAnnotationName
public char[][] owningAnnotationNameName of the annotation which the resource leak analysis will use as 'owning' -
notOwningAnnotationName
public char[][] notOwningAnnotationNameName of the annotation which the resource leak analysis will use as 'not-owning' -
reportMissingEnumCaseDespiteDefault
public boolean reportMissingEnumCaseDespiteDefaultShould missing enum cases be reported even if a default case exists in the same switch? -
reportUnlikelyCollectionMethodArgumentTypeStrict
public boolean reportUnlikelyCollectionMethodArgumentTypeStrictWhen checking for unlikely argument types of of Map.get() et al, perform strict analysis against the expected type -
tolerateIllegalAmbiguousVarargsInvocation
public static boolean tolerateIllegalAmbiguousVarargsInvocationShould the compiler tolerate illegal ambiguous varargs invocation incompliance < 1.7to be bug compatible with javac? (bug 383780) -
inheritNullAnnotations
public boolean inheritNullAnnotationsShould null annotations of overridden methods be inherited? -
enableSyntacticNullAnalysisForFields
public boolean enableSyntacticNullAnalysisForFieldsShould immediate null-check for fields be considered during null analysis (syntactical match)? -
pessimisticNullAnalysisForFreeTypeVariablesEnabled
public boolean pessimisticNullAnalysisForFreeTypeVariablesEnabledIs the error level for pessimistic null analysis for free type variables different from "ignore"? -
complainOnUninternedIdentityComparison
public boolean complainOnUninternedIdentityComparison -
emulateJavacBug8031744
public boolean emulateJavacBug8031744 -
useNullTypeAnnotations
Not directly configurable, derived from other options by LookupEnvironment.usesNullTypeAnnotations() -
useOwningAnnotations
Not directly configurable, derived from other options by LookupEnvironment.usesOwningAnnotation() -
enablePreviewFeatures
public boolean enablePreviewFeaturesMaster flag to enabled/disable all preview features -
enableJdtDebugCompileMode
public boolean enableJdtDebugCompileModeEnable a less restrictive compile mode for JDT debug. -
ignoreUnnamedModuleForSplitPackage
public boolean ignoreUnnamedModuleForSplitPackageShould the compiler ignore the unnamed module when a package is defined in both a named module and the unnamed module? -
useStringConcatFactory
public boolean useStringConcatFactoryShould the compiler use the StringConcatFactory for String concatenation expressions in the produced binary -
warningTokens
-
-
Constructor Details
-
CompilerOptions
public CompilerOptions()Initializing the compiler options with defaults -
CompilerOptions
-
CompilerOptions
-
-
Method Details
-
getLatestVersion
Return the latest Java language version supported by the Eclipse compiler -
optionKeyFromIrritant
Return the most specific option key controlling this irritant. Note that in some case, some irritant is controlled by other master options (e.g. javadoc, deprecation, etc.). This information is intended for grouping purpose (several problems governed by a rule) -
versionFromJdkLevel
-
releaseToJDKLevel
-
versionToJdkLevel
-
versionToJdkLevel
-
warningOptionNames
Return all warning option names for use as keys in compiler options maps.- Returns:
- all warning option names
-
warningTokenFromIrritant
For suppressable warnings -
warningTokenToIrritants
-
getMap
-
getSeverity
public int getSeverity(int irritant) -
getSeverityString
-
getVisibilityString
-
isAnyEnabled
-
getIgnoredIrritant
-
resetDefaults
protected void resetDefaults() -
set
-
toString
-
updateSeverity
-
usesNullTypeAnnotations
public boolean usesNullTypeAnnotations()Note, if you have a LookupEnvironment you should instead askLookupEnvironment.usesNullTypeAnnotations().
-