Klasse CompilerOptions
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions
- Bekannte direkte Unterklassen:
AjCompilerOptions
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic 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?booleanShould 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 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 classfilelongTagBits-encoded default for non-annotated types.static final intbooleanMaster switch for null analysis based on annotations: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[][]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 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 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 intstatic 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. if (DEBUG) ...)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 in compliance Ungültige Eingabe: "<" 1.7 to be bug compatible with javac?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()static 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 StringDefaults defined atIrritantSet.COMPILER_DEFAULT_WARNINGSstatic final String[] -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInitializing the compiler options with defaultsCompilerOptions(Map<String, String> settings) Initializing the compiler options with external settingsCompilerOptions(Map settings, boolean parseLiteralExpressionsAsConstants) Veraltet.used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintgetIgnoredIrritant(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)
-
Felddetails
-
OPTION_LocalVariableAttribute
Option IDs- Siehe auch:
-
OPTION_LineNumberAttribute
- Siehe auch:
-
OPTION_SourceFileAttribute
- Siehe auch:
-
OPTION_PreserveUnusedLocal
- Siehe auch:
-
OPTION_MethodParametersAttribute
- Siehe auch:
-
OPTION_LambdaGenericSignature
- Siehe auch:
-
OPTION_DocCommentSupport
- Siehe auch:
-
OPTION_ReportMethodWithConstructorName
- Siehe auch:
-
OPTION_ReportOverridingPackageDefaultMethod
- Siehe auch:
-
OPTION_ReportDeprecation
- Siehe auch:
-
OPTION_ReportTerminalDeprecation
- Siehe auch:
-
OPTION_ReportDeprecationInDeprecatedCode
- Siehe auch:
-
OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
- Siehe auch:
-
OPTION_ReportHiddenCatchBlock
- Siehe auch:
-
OPTION_ReportUnusedLocal
- Siehe auch:
-
OPTION_ReportUnusedParameter
- Siehe auch:
-
OPTION_ReportUnusedExceptionParameter
- Siehe auch:
-
OPTION_ReportUnusedParameterWhenImplementingAbstract
- Siehe auch:
-
OPTION_ReportUnusedParameterWhenOverridingConcrete
- Siehe auch:
-
OPTION_ReportUnusedParameterIncludeDocCommentReference
- Siehe auch:
-
OPTION_ReportUnusedImport
- Siehe auch:
-
OPTION_ReportSyntheticAccessEmulation
- Siehe auch:
-
OPTION_ReportNoEffectAssignment
- Siehe auch:
-
OPTION_ReportLocalVariableHiding
- Siehe auch:
-
OPTION_ReportSpecialParameterHidingField
- Siehe auch:
-
OPTION_ReportFieldHiding
- Siehe auch:
-
OPTION_ReportTypeParameterHiding
- Siehe auch:
-
OPTION_ReportPossibleAccidentalBooleanAssignment
- Siehe auch:
-
OPTION_ReportNonExternalizedStringLiteral
- Siehe auch:
-
OPTION_ReportIncompatibleNonInheritedInterfaceMethod
- Siehe auch:
-
OPTION_ReportUnusedPrivateMember
- Siehe auch:
-
OPTION_ReportNoImplicitStringConversion
- Siehe auch:
-
OPTION_ReportAssertIdentifier
- Siehe auch:
-
OPTION_ReportEnumIdentifier
- Siehe auch:
-
OPTION_ReportNonStaticAccessToStatic
- Siehe auch:
-
OPTION_ReportIndirectStaticAccess
- Siehe auch:
-
OPTION_ReportEmptyStatement
- Siehe auch:
-
OPTION_ReportUnnecessaryTypeCheck
- Siehe auch:
-
OPTION_ReportUnnecessaryElse
- Siehe auch:
-
OPTION_ReportUndocumentedEmptyBlock
- Siehe auch:
-
OPTION_ReportInvalidJavadoc
- Siehe auch:
-
OPTION_ReportInvalidJavadocTags
- Siehe auch:
-
OPTION_ReportInvalidJavadocTagsDeprecatedRef
- Siehe auch:
-
OPTION_ReportInvalidJavadocTagsNotVisibleRef
- Siehe auch:
-
OPTION_ReportInvalidJavadocTagsVisibility
- Siehe auch:
-
OPTION_ReportMissingJavadocTags
- Siehe auch:
-
OPTION_ReportMissingJavadocTagsVisibility
- Siehe auch:
-
OPTION_ReportMissingJavadocTagsOverriding
- Siehe auch:
-
OPTION_ReportMissingJavadocTagsMethodTypeParameters
- Siehe auch:
-
OPTION_ReportMissingJavadocComments
- Siehe auch:
-
OPTION_ReportMissingJavadocTagDescription
- Siehe auch:
-
OPTION_ReportMissingJavadocCommentsVisibility
- Siehe auch:
-
OPTION_ReportMissingJavadocCommentsOverriding
- Siehe auch:
-
OPTION_ReportFinallyBlockNotCompletingNormally
- Siehe auch:
-
OPTION_ReportUnusedDeclaredThrownException
- Siehe auch:
-
OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
- Siehe auch:
-
OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
- Siehe auch:
-
OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
- Siehe auch:
-
OPTION_ReportUnqualifiedFieldAccess
- Siehe auch:
-
OPTION_ReportUncheckedTypeOperation
- Siehe auch:
-
OPTION_ReportRawTypeReference
- Siehe auch:
-
OPTION_ReportFinalParameterBound
- Siehe auch:
-
OPTION_ReportMissingSerialVersion
- Siehe auch:
-
OPTION_ReportVarargsArgumentNeedCast
- Siehe auch:
-
OPTION_ReportUnusedTypeArgumentsForMethodInvocation
- Siehe auch:
-
OPTION_Source
- Siehe auch:
-
OPTION_TargetPlatform
- Siehe auch:
-
OPTION_Compliance
- Siehe auch:
-
OPTION_Release
- Siehe auch:
-
OPTION_Encoding
- Siehe auch:
-
OPTION_MaxProblemPerUnit
- Siehe auch:
-
OPTION_TaskTags
- Siehe auch:
-
OPTION_TaskPriorities
- Siehe auch:
-
OPTION_TaskCaseSensitive
- Siehe auch:
-
OPTION_InlineJsr
- Siehe auch:
-
OPTION_ReportNullReference
- Siehe auch:
-
OPTION_ReportPotentialNullReference
- Siehe auch:
-
OPTION_ReportRedundantNullCheck
- Siehe auch:
-
OPTION_ReportAutoboxing
- Siehe auch:
-
OPTION_ReportAnnotationSuperInterface
- Siehe auch:
-
OPTION_ReportMissingOverrideAnnotation
- Siehe auch:
-
OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
- Siehe auch:
-
OPTION_ReportMissingDeprecatedAnnotation
- Siehe auch:
-
OPTION_ReportIncompleteEnumSwitch
- Siehe auch:
-
OPTION_ReportMissingEnumCaseDespiteDefault
- Siehe auch:
-
OPTION_ReportMissingDefaultCase
- Siehe auch:
-
OPTION_ReportForbiddenReference
- Siehe auch:
-
OPTION_ReportDiscouragedReference
- Siehe auch:
-
OPTION_SuppressWarnings
- Siehe auch:
-
OPTION_SuppressOptionalErrors
- Siehe auch:
-
OPTION_ReportUnhandledWarningToken
- Siehe auch:
-
OPTION_ReportUnusedTypeParameter
- Siehe auch:
-
OPTION_ReportUnusedWarningToken
- Siehe auch:
-
OPTION_ReportUnusedLabel
- Siehe auch:
-
OPTION_FatalOptionalError
- Siehe auch:
-
OPTION_ReportParameterAssignment
- Siehe auch:
-
OPTION_ReportFallthroughCase
- Siehe auch:
-
OPTION_ReportOverridingMethodWithoutSuperInvocation
- Siehe auch:
-
OPTION_GenerateClassFiles
- Siehe auch:
-
OPTION_Process_Annotations
- Siehe auch:
-
OPTION_Store_Annotations
- Siehe auch:
-
OPTION_EmulateJavacBug8031744
- Siehe auch:
-
OPTION_ReportRedundantSuperinterface
- Siehe auch:
-
OPTION_ReportComparingIdentical
- Siehe auch:
-
OPTION_ReportMissingSynchronizedOnInheritedMethod
- Siehe auch:
-
OPTION_ReportMissingHashCodeMethod
- Siehe auch:
-
OPTION_ReportDeadCode
- Siehe auch:
-
OPTION_ReportDeadCodeInTrivialIfStatement
- Siehe auch:
-
OPTION_ReportTasks
- Siehe auch:
-
OPTION_ReportUnusedObjectAllocation
- Siehe auch:
-
OPTION_IncludeNullInfoFromAsserts
- Siehe auch:
-
OPTION_ReportMethodCanBeStatic
- Siehe auch:
-
OPTION_ReportMethodCanBePotentiallyStatic
- Siehe auch:
-
OPTION_ReportRedundantSpecificationOfTypeArguments
- Siehe auch:
-
OPTION_ReportUnclosedCloseable
- Siehe auch:
-
OPTION_ReportPotentiallyUnclosedCloseable
- Siehe auch:
-
OPTION_ReportExplicitlyClosedAutoCloseable
- Siehe auch:
-
OPTION_ReportNullSpecViolation
- Siehe auch:
-
OPTION_ReportNullAnnotationInferenceConflict
- Siehe auch:
-
OPTION_ReportNullUncheckedConversion
- Siehe auch:
-
OPTION_ReportRedundantNullAnnotation
- Siehe auch:
-
OPTION_AnnotationBasedNullAnalysis
- Siehe auch:
-
OPTION_NullableAnnotationName
- Siehe auch:
-
OPTION_NonNullAnnotationName
- Siehe auch:
-
OPTION_NonNullByDefaultAnnotationName
- Siehe auch:
-
OPTION_NullableAnnotationSecondaryNames
- Siehe auch:
-
OPTION_NonNullAnnotationSecondaryNames
- Siehe auch:
-
OPTION_NonNullByDefaultAnnotationSecondaryNames
- Siehe auch:
-
OPTION_ReportUninternedIdentityComparison
- Siehe auch:
-
OPTION_ReportMissingNonNullByDefaultAnnotation
- Siehe auch:
-
OPTION_SyntacticNullAnalysisForFields
- Siehe auch:
-
OPTION_InheritNullAnnotations
- Siehe auch:
-
OPTION_ReportNonnullParameterAnnotationDropped
- Siehe auch:
-
OPTION_PessimisticNullAnalysisForFreeTypeVariables
- Siehe auch:
-
OPTION_ReportNonNullTypeVariableFromLegacyInvocation
- Siehe auch:
-
OPTION_ReportAnnotatedTypeArgumentToUnannotated
- Siehe auch:
-
OPTION_ReportUnlikelyCollectionMethodArgumentType
- Siehe auch:
-
OPTION_ReportUnlikelyCollectionMethodArgumentTypeStrict
- Siehe auch:
-
OPTION_ReportUnlikelyEqualsArgumentType
- Siehe auch:
-
OPTION_ReportAPILeak
- Siehe auch:
-
OPTION_ReportUnstableAutoModuleName
- Siehe auch:
-
OPTION_EnablePreviews
- Siehe auch:
-
OPTION_ReportPreviewFeatures
- Siehe auch:
-
OPTION_ReportSuppressWarningNotFullyAnalysed
- Siehe auch:
-
OPTION_JdtDebugCompileMode
- Siehe auch:
-
OPTION_IgnoreUnnamedModuleForSplitPackage
- Siehe auch:
-
GENERATE
Possible values for configurable options- Siehe auch:
-
DO_NOT_GENERATE
- Siehe auch:
-
PRESERVE
- Siehe auch:
-
OPTIMIZE_OUT
- Siehe auch:
-
VERSION_1_1
- Siehe auch:
-
VERSION_1_2
- Siehe auch:
-
VERSION_1_3
- Siehe auch:
-
VERSION_1_4
- Siehe auch:
-
VERSION_JSR14
- Siehe auch:
-
VERSION_CLDC1_1
- Siehe auch:
-
VERSION_1_5
- Siehe auch:
-
VERSION_1_6
- Siehe auch:
-
VERSION_1_7
- Siehe auch:
-
VERSION_1_8
- Siehe auch:
-
VERSION_9
- Siehe auch:
-
VERSION_10
- Siehe auch:
-
VERSION_11
- Siehe auch:
-
VERSION_12
- Siehe auch:
-
VERSION_13
- Siehe auch:
-
VERSION_14
- Siehe auch:
-
VERSION_15
- Siehe auch:
-
VERSION_16
- Siehe auch:
-
VERSION_17
- Siehe auch:
-
VERSION_18
- Siehe auch:
-
VERSION_19
- Siehe auch:
-
ERROR
- Siehe auch:
-
WARNING
- Siehe auch:
-
INFO
- Siehe auch:
-
IGNORE
- Siehe auch:
-
ENABLED
- Siehe auch:
-
DISABLED
- Siehe auch:
-
PUBLIC
- Siehe auch:
-
PROTECTED
- Siehe auch:
-
DEFAULT
- Siehe auch:
-
PRIVATE
- Siehe auch:
-
RETURN_TAG
- Siehe auch:
-
NO_TAG
- Siehe auch:
-
ALL_STANDARD_TAGS
- Siehe auch:
-
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- Siehe auch:
-
OverriddenPackageDefaultMethod
public static final int OverriddenPackageDefaultMethod- Siehe auch:
-
UsingDeprecatedAPI
public static final int UsingDeprecatedAPI- Siehe auch:
-
MaskedCatchBlock
public static final int MaskedCatchBlock- Siehe auch:
-
UnusedLocalVariable
public static final int UnusedLocalVariable- Siehe auch:
-
UnusedArgument
public static final int UnusedArgument- Siehe auch:
-
NoImplicitStringConversion
public static final int NoImplicitStringConversion- Siehe auch:
-
AccessEmulation
public static final int AccessEmulation- Siehe auch:
-
NonExternalizedString
public static final int NonExternalizedString- Siehe auch:
-
AssertUsedAsAnIdentifier
public static final int AssertUsedAsAnIdentifier- Siehe auch:
-
UnusedImport
public static final int UnusedImport- Siehe auch:
-
NonStaticAccessToStatic
public static final int NonStaticAccessToStatic- Siehe auch:
-
Task
public static final int Task- Siehe auch:
-
NoEffectAssignment
public static final int NoEffectAssignment- Siehe auch:
-
IncompatibleNonInheritedInterfaceMethod
public static final int IncompatibleNonInheritedInterfaceMethod- Siehe auch:
-
UnusedPrivateMember
public static final int UnusedPrivateMember- Siehe auch:
-
LocalVariableHiding
public static final int LocalVariableHiding- Siehe auch:
-
FieldHiding
public static final int FieldHiding- Siehe auch:
-
AccidentalBooleanAssign
public static final int AccidentalBooleanAssign- Siehe auch:
-
EmptyStatement
public static final int EmptyStatement- Siehe auch:
-
MissingJavadocComments
public static final int MissingJavadocComments- Siehe auch:
-
MissingJavadocTags
public static final int MissingJavadocTags- Siehe auch:
-
UnqualifiedFieldAccess
public static final int UnqualifiedFieldAccess- Siehe auch:
-
UnusedDeclaredThrownException
public static final int UnusedDeclaredThrownException- Siehe auch:
-
FinallyBlockNotCompleting
public static final int FinallyBlockNotCompleting- Siehe auch:
-
InvalidJavadoc
public static final int InvalidJavadoc- Siehe auch:
-
UnnecessaryTypeCheck
public static final int UnnecessaryTypeCheck- Siehe auch:
-
UndocumentedEmptyBlock
public static final int UndocumentedEmptyBlock- Siehe auch:
-
IndirectStaticAccess
public static final int IndirectStaticAccess- Siehe auch:
-
UnnecessaryElse
public static final int UnnecessaryElse- Siehe auch:
-
UncheckedTypeOperation
public static final int UncheckedTypeOperation- Siehe auch:
-
FinalParameterBound
public static final int FinalParameterBound- Siehe auch:
-
MissingSerialVersion
public static final int MissingSerialVersion- Siehe auch:
-
EnumUsedAsAnIdentifier
public static final int EnumUsedAsAnIdentifier- Siehe auch:
-
ForbiddenReference
public static final int ForbiddenReference- Siehe auch:
-
VarargsArgumentNeedCast
public static final int VarargsArgumentNeedCast- Siehe auch:
-
NullReference
public static final int NullReference- Siehe auch:
-
AutoBoxing
public static final int AutoBoxing- Siehe auch:
-
AnnotationSuperInterface
public static final int AnnotationSuperInterface- Siehe auch:
-
TypeHiding
public static final int TypeHiding- Siehe auch:
-
MissingOverrideAnnotation
public static final int MissingOverrideAnnotation- Siehe auch:
-
MissingEnumConstantCase
public static final int MissingEnumConstantCase- Siehe auch:
-
MissingDeprecatedAnnotation
public static final int MissingDeprecatedAnnotation- Siehe auch:
-
DiscouragedReference
public static final int DiscouragedReference- Siehe auch:
-
UnhandledWarningToken
public static final int UnhandledWarningToken- Siehe auch:
-
RawTypeReference
public static final int RawTypeReference- Siehe auch:
-
UnusedLabel
public static final int UnusedLabel- Siehe auch:
-
ParameterAssignment
public static final int ParameterAssignment- Siehe auch:
-
FallthroughCase
public static final int FallthroughCase- Siehe auch:
-
OverridingMethodWithoutSuperInvocation
public static final int OverridingMethodWithoutSuperInvocation- Siehe auch:
-
PotentialNullReference
public static final int PotentialNullReference- Siehe auch:
-
RedundantNullCheck
public static final int RedundantNullCheck- Siehe auch:
-
MissingJavadocTagDescription
public static final int MissingJavadocTagDescription- Siehe auch:
-
UnusedTypeArguments
public static final int UnusedTypeArguments- Siehe auch:
-
UnusedWarningToken
public static final int UnusedWarningToken- Siehe auch:
-
RedundantSuperinterface
public static final int RedundantSuperinterface- Siehe auch:
-
ComparingIdentical
public static final int ComparingIdentical- Siehe auch:
-
MissingSynchronizedModifierInInheritedMethod
public static final int MissingSynchronizedModifierInInheritedMethod- Siehe auch:
-
ShouldImplementHashcode
public static final int ShouldImplementHashcode- Siehe auch:
-
DeadCode
public static final int DeadCode- Siehe auch:
-
Tasks
public static final int Tasks- Siehe auch:
-
UnusedObjectAllocation
public static final int UnusedObjectAllocation- Siehe auch:
-
MethodCanBeStatic
public static final int MethodCanBeStatic- Siehe auch:
-
MethodCanBePotentiallyStatic
public static final int MethodCanBePotentiallyStatic- Siehe auch:
-
RedundantSpecificationOfTypeArguments
public static final int RedundantSpecificationOfTypeArguments- Siehe auch:
-
UnclosedCloseable
public static final int UnclosedCloseable- Siehe auch:
-
PotentiallyUnclosedCloseable
public static final int PotentiallyUnclosedCloseable- Siehe auch:
-
ExplicitlyClosedAutoCloseable
public static final int ExplicitlyClosedAutoCloseable- Siehe auch:
-
NullSpecViolation
public static final int NullSpecViolation- Siehe auch:
-
NullAnnotationInferenceConflict
public static final int NullAnnotationInferenceConflict- Siehe auch:
-
NullUncheckedConversion
public static final int NullUncheckedConversion- Siehe auch:
-
RedundantNullAnnotation
public static final int RedundantNullAnnotation- Siehe auch:
-
MissingNonNullByDefaultAnnotation
public static final int MissingNonNullByDefaultAnnotation- Siehe auch:
-
MissingDefaultCase
public static final int MissingDefaultCase- Siehe auch:
-
UnusedTypeParameter
public static final int UnusedTypeParameter- Siehe auch:
-
NonnullParameterAnnotationDropped
public static final int NonnullParameterAnnotationDropped- Siehe auch:
-
UnusedExceptionParameter
public static final int UnusedExceptionParameter- Siehe auch:
-
PessimisticNullAnalysisForFreeTypeVariables
public static final int PessimisticNullAnalysisForFreeTypeVariables- Siehe auch:
-
NonNullTypeVariableFromLegacyInvocation
public static final int NonNullTypeVariableFromLegacyInvocation- Siehe auch:
-
UnlikelyCollectionMethodArgumentType
public static final int UnlikelyCollectionMethodArgumentType- Siehe auch:
-
UnlikelyEqualsArgumentType
public static final int UnlikelyEqualsArgumentType- Siehe auch:
-
UsingTerminallyDeprecatedAPI
public static final int UsingTerminallyDeprecatedAPI- Siehe auch:
-
APILeak
public static final int APILeak- Siehe auch:
-
UnstableAutoModuleName
public static final int UnstableAutoModuleName- Siehe auch:
-
PreviewFeatureUsed
public static final int PreviewFeatureUsed- Siehe auch:
-
SuppressWarningsNotAnalysed
public static final int SuppressWarningsNotAnalysed- Siehe auch:
-
AnnotatedTypeArgumentToUnannotated
public static final int AnnotatedTypeArgumentToUnannotated- Siehe auch:
-
OPTION_ReportSwallowedExceptionInCatchBlock
- Siehe auch:
-
SwallowedExceptionInCatchBlock
public static final int SwallowedExceptionInCatchBlock- Siehe auch:
-
errorThreshold
Defaults defined atIrritantSet.COMPILER_DEFAULT_ERRORS- Siehe auch:
-
warningThreshold
Defaults defined atIrritantSet.COMPILER_DEFAULT_WARNINGS- Siehe auch:
-
infoThreshold
Defaults defined atIrritantSet.COMPILER_DEFAULT_INFOS- Siehe auch:
-
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()? -
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 in compliance Ungültige Eingabe: "<" 1.7 to 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() -
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? -
warningTokens
-
-
Konstruktordetails
-
CompilerOptions
public CompilerOptions()Initializing the compiler options with defaults -
CompilerOptions
Initializing the compiler options with external settings- Parameter:
settings-
-
CompilerOptions
Veraltet.used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors
-
-
Methodendetails
-
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.- Gibt zurück:
- 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().
-