org.eclipse.jdt.internal.compiler.impl
Class CompilerOptions
java.lang.Object
org.eclipse.jdt.internal.compiler.impl.CompilerOptions
public class CompilerOptions
- extends Object
Field Summary |
static int |
AccessEmulation
|
static int |
AccidentalBooleanAssign
|
static String |
ALL_STANDARD_TAGS
|
static int |
AnnotationSuperInterface
|
static int |
AssertUsedAsAnIdentifier
|
static int |
AutoBoxing
|
static int |
ComparingIdentical
|
long |
complianceLevel
Compliance level for the compiler, refers to a JDK version, e.g. |
static int |
DeadCode
|
static String |
DEFAULT
|
String |
defaultEncoding
Source encoding format |
static String |
DISABLED
|
static int |
DiscouragedReference
|
static String |
DO_NOT_GENERATE
|
boolean |
docCommentSupport
Master flag controlling whether doc comment should be processed |
static int |
EmptyStatement
|
static String |
ENABLED
|
static int |
EnumUsedAsAnIdentifier
|
static String |
ERROR
|
protected IrritantSet |
errorThreshold
Defaults defined at IrritantSet.COMPILER_DEFAULT_ERRORS |
static int |
FallthroughCase
|
static int |
FieldHiding
|
static int |
FinallyBlockNotCompleting
|
static int |
FinalParameterBound
|
static int |
ForbiddenReference
|
static String |
GENERATE
Possible values for configurable options |
boolean |
generateClassFiles
Indicate if annotation processing generates classfiles |
static String |
IGNORE
|
boolean |
ignoreMethodBodies
Indicate if method bodies should be ignored |
boolean |
includeNullInfoFromAsserts
Raise null related warnings for variables tainted inside an assert statement (java 1.4 and above) |
static int |
IncompatibleNonInheritedInterfaceMethod
|
static int |
IncompleteEnumSwitch
|
static int |
IndirectStaticAccess
|
boolean |
inlineJsrBytecode
Indicate whether the JSR bytecode should be inlined to avoid its presence in classfile |
static int |
InvalidJavadoc
|
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 |
MissingDeprecatedAnnotation
|
static int |
MissingJavadocComments
|
static int |
MissingJavadocTagDescription
|
static int |
MissingJavadocTags
|
static int |
MissingOverrideAnnotation
|
static int |
MissingSerialVersion
|
static int |
MissingSynchronizedModifierInInheritedMethod
|
static String |
NO_TAG
|
static int |
NoEffectAssignment
|
static int |
NoImplicitStringConversion
|
static int |
NonExternalizedString
|
static int |
NonStaticAccessToStatic
|
static int |
NullReference
|
static String |
OPTIMIZE_OUT
|
static String |
OPTION_Compliance
|
static String |
OPTION_DocCommentSupport
|
static String |
OPTION_Encoding
|
static String |
OPTION_FatalOptionalError
|
static String |
OPTION_GenerateClassFiles
|
static String |
OPTION_IncludeNullInfoFromAsserts
|
static String |
OPTION_InlineJsr
|
static String |
OPTION_LineNumberAttribute
|
static String |
OPTION_LocalVariableAttribute
Option IDs |
static String |
OPTION_MaxProblemPerUnit
|
static String |
OPTION_PreserveUnusedLocal
|
static String |
OPTION_Process_Annotations
|
static String |
OPTION_ReportAnnotationSuperInterface
|
static String |
OPTION_ReportAssertIdentifier
|
static String |
OPTION_ReportAutoboxing
|
static String |
OPTION_ReportComparingIdentical
|
static String |
OPTION_ReportDeadCode
|
static String |
OPTION_ReportDeadCodeInTrivialIfStatement
|
static String |
OPTION_ReportDeprecation
|
static String |
OPTION_ReportDeprecationInDeprecatedCode
|
static String |
OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
|
static String |
OPTION_ReportDiscouragedReference
|
static String |
OPTION_ReportEmptyStatement
|
static String |
OPTION_ReportEnumIdentifier
|
static String |
OPTION_ReportFallthroughCase
|
static String |
OPTION_ReportFieldHiding
|
static String |
OPTION_ReportFinallyBlockNotCompletingNormally
|
static String |
OPTION_ReportFinalParameterBound
|
static String |
OPTION_ReportForbiddenReference
|
static String |
OPTION_ReportHiddenCatchBlock
|
static String |
OPTION_ReportIncompatibleNonInheritedInterfaceMethod
|
static String |
OPTION_ReportIncompleteEnumSwitch
|
static String |
OPTION_ReportIndirectStaticAccess
|
static String |
OPTION_ReportInvalidJavadoc
|
static String |
OPTION_ReportInvalidJavadocTags
|
static String |
OPTION_ReportInvalidJavadocTagsDeprecatedRef
|
static String |
OPTION_ReportInvalidJavadocTagsNotVisibleRef
|
static String |
OPTION_ReportInvalidJavadocTagsVisibility
|
static String |
OPTION_ReportLocalVariableHiding
|
static String |
OPTION_ReportMethodCanBePotentiallyStatic
|
static String |
OPTION_ReportMethodCanBeStatic
|
static String |
OPTION_ReportMethodWithConstructorName
|
static String |
OPTION_ReportMissingDeprecatedAnnotation
|
static String |
OPTION_ReportMissingHashCodeMethod
|
static String |
OPTION_ReportMissingJavadocComments
|
static String |
OPTION_ReportMissingJavadocCommentsOverriding
|
static String |
OPTION_ReportMissingJavadocCommentsVisibility
|
static String |
OPTION_ReportMissingJavadocTagDescription
|
static String |
OPTION_ReportMissingJavadocTags
|
static String |
OPTION_ReportMissingJavadocTagsMethodTypeParameters
|
static String |
OPTION_ReportMissingJavadocTagsOverriding
|
static String |
OPTION_ReportMissingJavadocTagsVisibility
|
static String |
OPTION_ReportMissingOverrideAnnotation
|
static String |
OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
|
static String |
OPTION_ReportMissingSerialVersion
|
static String |
OPTION_ReportMissingSynchronizedOnInheritedMethod
|
static String |
OPTION_ReportNoEffectAssignment
|
static String |
OPTION_ReportNoImplicitStringConversion
|
static String |
OPTION_ReportNonExternalizedStringLiteral
|
static String |
OPTION_ReportNonStaticAccessToStatic
|
static String |
OPTION_ReportNullReference
|
static String |
OPTION_ReportOverridingMethodWithoutSuperInvocation
|
static String |
OPTION_ReportOverridingPackageDefaultMethod
|
static String |
OPTION_ReportParameterAssignment
|
static String |
OPTION_ReportPossibleAccidentalBooleanAssignment
|
static String |
OPTION_ReportPotentialNullReference
|
static String |
OPTION_ReportRawTypeReference
|
static String |
OPTION_ReportRedundantNullCheck
|
static String |
OPTION_ReportRedundantSpecificationOfTypeArguments
|
static String |
OPTION_ReportRedundantSuperinterface
|
static String |
OPTION_ReportSpecialParameterHidingField
|
static String |
OPTION_ReportSyntheticAccessEmulation
|
static String |
OPTION_ReportTasks
|
static String |
OPTION_ReportTypeParameterHiding
|
static String |
OPTION_ReportUnavoidableGenericTypeProblems
|
static String |
OPTION_ReportUncheckedTypeOperation
|
static String |
OPTION_ReportUndocumentedEmptyBlock
|
static String |
OPTION_ReportUnhandledWarningToken
|
static String |
OPTION_ReportUnnecessaryElse
|
static String |
OPTION_ReportUnnecessaryTypeCheck
|
static String |
OPTION_ReportUnqualifiedFieldAccess
|
static String |
OPTION_ReportUnusedDeclaredThrownException
|
static String |
OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
|
static String |
OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
|
static String |
OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
|
static String |
OPTION_ReportUnusedImport
|
static String |
OPTION_ReportUnusedLabel
|
static String |
OPTION_ReportUnusedLocal
|
static String |
OPTION_ReportUnusedObjectAllocation
|
static String |
OPTION_ReportUnusedParameter
|
static String |
OPTION_ReportUnusedParameterIncludeDocCommentReference
|
static String |
OPTION_ReportUnusedParameterWhenImplementingAbstract
|
static String |
OPTION_ReportUnusedParameterWhenOverridingConcrete
|
static String |
OPTION_ReportUnusedPrivateMember
|
static String |
OPTION_ReportUnusedTypeArgumentsForMethodInvocation
|
static String |
OPTION_ReportUnusedWarningToken
|
static String |
OPTION_ReportVarargsArgumentNeedCast
|
static String |
OPTION_Source
|
static String |
OPTION_SourceFileAttribute
|
static String |
OPTION_SuppressOptionalErrors
|
static String |
OPTION_SuppressWarnings
|
static String |
OPTION_TargetPlatform
|
static String |
OPTION_TaskCaseSensitive
|
static String |
OPTION_TaskPriorities
|
static 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 |
static int |
PotentialNullReference
|
static String |
PRESERVE
|
boolean |
preserveAllLocalVariables
Indicates if unused/optimizable local variables need to be preserved (debugging purpose) |
static 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 |
produceReferenceInfo
Indicates whether reference info is desired |
static String |
PROTECTED
|
static String |
PUBLIC
|
static int |
RawTypeReference
|
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 |
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 |
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 String |
RETURN_TAG
|
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 |
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 |
boolean |
treatOptionalErrorAsFatal
Specify if should treat optional error as fatal or just like warning |
static int |
TypeHiding
|
static int |
UncheckedTypeOperation
|
static int |
UndocumentedEmptyBlock
|
static int |
UnhandledWarningToken
|
static int |
UnnecessaryElse
|
static int |
UnnecessaryTypeCheck
|
static int |
UnqualifiedFieldAccess
|
static int |
UnusedArgument
|
static int |
UnusedDeclaredThrownException
|
static int |
UnusedImport
|
static int |
UnusedLabel
|
static int |
UnusedLocalVariable
|
static int |
UnusedObjectAllocation
|
static int |
UnusedPrivateMember
|
static int |
UnusedTypeArguments
|
static int |
UnusedWarningToken
|
static int |
UsingDeprecatedAPI
|
static int |
VarargsArgumentNeedCast
|
boolean |
verbose
Compiler trace verbosity |
static String |
VERSION_1_1
|
static String |
VERSION_1_2
|
static String |
VERSION_1_3
|
static String |
VERSION_1_4
|
static String |
VERSION_1_5
|
static String |
VERSION_1_6
|
static String |
VERSION_1_7
|
static String |
VERSION_CLDC1_1
|
static String |
VERSION_JSR14
|
static String |
WARNING
|
protected IrritantSet |
warningThreshold
Defaults defined at IrritantSet.COMPILER_DEFAULT_WARNINGS |
static String[] |
warningTokens
|
Constructor Summary |
CompilerOptions()
Initializing the compiler options with defaults |
CompilerOptions(Map settings)
Initializing the compiler options with external settings |
CompilerOptions(Map settings,
boolean parseLiteralExpressionsAsConstants)
Deprecated. used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors |
OPTION_LocalVariableAttribute
public static final String OPTION_LocalVariableAttribute
- Option IDs
- See Also:
- Constant Field Values
OPTION_LineNumberAttribute
public static final String OPTION_LineNumberAttribute
- See Also:
- Constant Field Values
OPTION_SourceFileAttribute
public static final String OPTION_SourceFileAttribute
- See Also:
- Constant Field Values
OPTION_PreserveUnusedLocal
public static final String OPTION_PreserveUnusedLocal
- See Also:
- Constant Field Values
OPTION_DocCommentSupport
public static final String OPTION_DocCommentSupport
- See Also:
- Constant Field Values
OPTION_ReportMethodWithConstructorName
public static final String OPTION_ReportMethodWithConstructorName
- See Also:
- Constant Field Values
OPTION_ReportOverridingPackageDefaultMethod
public static final String OPTION_ReportOverridingPackageDefaultMethod
- See Also:
- Constant Field Values
OPTION_ReportDeprecation
public static final String OPTION_ReportDeprecation
- See Also:
- Constant Field Values
OPTION_ReportDeprecationInDeprecatedCode
public static final String OPTION_ReportDeprecationInDeprecatedCode
- See Also:
- Constant Field Values
OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
public static final String OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
- See Also:
- Constant Field Values
OPTION_ReportHiddenCatchBlock
public static final String OPTION_ReportHiddenCatchBlock
- See Also:
- Constant Field Values
OPTION_ReportUnusedLocal
public static final String OPTION_ReportUnusedLocal
- See Also:
- Constant Field Values
OPTION_ReportUnusedParameter
public static final String OPTION_ReportUnusedParameter
- See Also:
- Constant Field Values
OPTION_ReportUnusedParameterWhenImplementingAbstract
public static final String OPTION_ReportUnusedParameterWhenImplementingAbstract
- See Also:
- Constant Field Values
OPTION_ReportUnusedParameterWhenOverridingConcrete
public static final String OPTION_ReportUnusedParameterWhenOverridingConcrete
- See Also:
- Constant Field Values
OPTION_ReportUnusedParameterIncludeDocCommentReference
public static final String OPTION_ReportUnusedParameterIncludeDocCommentReference
- See Also:
- Constant Field Values
OPTION_ReportUnusedImport
public static final String OPTION_ReportUnusedImport
- See Also:
- Constant Field Values
OPTION_ReportSyntheticAccessEmulation
public static final String OPTION_ReportSyntheticAccessEmulation
- See Also:
- Constant Field Values
OPTION_ReportNoEffectAssignment
public static final String OPTION_ReportNoEffectAssignment
- See Also:
- Constant Field Values
OPTION_ReportLocalVariableHiding
public static final String OPTION_ReportLocalVariableHiding
- See Also:
- Constant Field Values
OPTION_ReportSpecialParameterHidingField
public static final String OPTION_ReportSpecialParameterHidingField
- See Also:
- Constant Field Values
OPTION_ReportFieldHiding
public static final String OPTION_ReportFieldHiding
- See Also:
- Constant Field Values
OPTION_ReportTypeParameterHiding
public static final String OPTION_ReportTypeParameterHiding
- See Also:
- Constant Field Values
OPTION_ReportPossibleAccidentalBooleanAssignment
public static final String OPTION_ReportPossibleAccidentalBooleanAssignment
- See Also:
- Constant Field Values
OPTION_ReportNonExternalizedStringLiteral
public static final String OPTION_ReportNonExternalizedStringLiteral
- See Also:
- Constant Field Values
OPTION_ReportIncompatibleNonInheritedInterfaceMethod
public static final String OPTION_ReportIncompatibleNonInheritedInterfaceMethod
- See Also:
- Constant Field Values
OPTION_ReportUnusedPrivateMember
public static final String OPTION_ReportUnusedPrivateMember
- See Also:
- Constant Field Values
OPTION_ReportNoImplicitStringConversion
public static final String OPTION_ReportNoImplicitStringConversion
- See Also:
- Constant Field Values
OPTION_ReportAssertIdentifier
public static final String OPTION_ReportAssertIdentifier
- See Also:
- Constant Field Values
OPTION_ReportEnumIdentifier
public static final String OPTION_ReportEnumIdentifier
- See Also:
- Constant Field Values
OPTION_ReportNonStaticAccessToStatic
public static final String OPTION_ReportNonStaticAccessToStatic
- See Also:
- Constant Field Values
OPTION_ReportIndirectStaticAccess
public static final String OPTION_ReportIndirectStaticAccess
- See Also:
- Constant Field Values
OPTION_ReportEmptyStatement
public static final String OPTION_ReportEmptyStatement
- See Also:
- Constant Field Values
OPTION_ReportUnnecessaryTypeCheck
public static final String OPTION_ReportUnnecessaryTypeCheck
- See Also:
- Constant Field Values
OPTION_ReportUnnecessaryElse
public static final String OPTION_ReportUnnecessaryElse
- See Also:
- Constant Field Values
OPTION_ReportUndocumentedEmptyBlock
public static final String OPTION_ReportUndocumentedEmptyBlock
- See Also:
- Constant Field Values
OPTION_ReportInvalidJavadoc
public static final String OPTION_ReportInvalidJavadoc
- See Also:
- Constant Field Values
OPTION_ReportInvalidJavadocTags
public static final String OPTION_ReportInvalidJavadocTags
- See Also:
- Constant Field Values
OPTION_ReportInvalidJavadocTagsDeprecatedRef
public static final String OPTION_ReportInvalidJavadocTagsDeprecatedRef
- See Also:
- Constant Field Values
OPTION_ReportInvalidJavadocTagsNotVisibleRef
public static final String OPTION_ReportInvalidJavadocTagsNotVisibleRef
- See Also:
- Constant Field Values
OPTION_ReportInvalidJavadocTagsVisibility
public static final String OPTION_ReportInvalidJavadocTagsVisibility
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocTags
public static final String OPTION_ReportMissingJavadocTags
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocTagsVisibility
public static final String OPTION_ReportMissingJavadocTagsVisibility
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocTagsOverriding
public static final String OPTION_ReportMissingJavadocTagsOverriding
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocTagsMethodTypeParameters
public static final String OPTION_ReportMissingJavadocTagsMethodTypeParameters
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocComments
public static final String OPTION_ReportMissingJavadocComments
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocTagDescription
public static final String OPTION_ReportMissingJavadocTagDescription
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocCommentsVisibility
public static final String OPTION_ReportMissingJavadocCommentsVisibility
- See Also:
- Constant Field Values
OPTION_ReportMissingJavadocCommentsOverriding
public static final String OPTION_ReportMissingJavadocCommentsOverriding
- See Also:
- Constant Field Values
OPTION_ReportFinallyBlockNotCompletingNormally
public static final String OPTION_ReportFinallyBlockNotCompletingNormally
- See Also:
- Constant Field Values
OPTION_ReportUnusedDeclaredThrownException
public static final String OPTION_ReportUnusedDeclaredThrownException
- See Also:
- Constant Field Values
OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
public static final String OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
- See Also:
- Constant Field Values
OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
public static final String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
- See Also:
- Constant Field Values
OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
public static final String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
- See Also:
- Constant Field Values
OPTION_ReportUnqualifiedFieldAccess
public static final String OPTION_ReportUnqualifiedFieldAccess
- See Also:
- Constant Field Values
OPTION_ReportUnavoidableGenericTypeProblems
public static final String OPTION_ReportUnavoidableGenericTypeProblems
- See Also:
- Constant Field Values
OPTION_ReportUncheckedTypeOperation
public static final String OPTION_ReportUncheckedTypeOperation
- See Also:
- Constant Field Values
OPTION_ReportRawTypeReference
public static final String OPTION_ReportRawTypeReference
- See Also:
- Constant Field Values
OPTION_ReportFinalParameterBound
public static final String OPTION_ReportFinalParameterBound
- See Also:
- Constant Field Values
OPTION_ReportMissingSerialVersion
public static final String OPTION_ReportMissingSerialVersion
- See Also:
- Constant Field Values
OPTION_ReportVarargsArgumentNeedCast
public static final String OPTION_ReportVarargsArgumentNeedCast
- See Also:
- Constant Field Values
OPTION_ReportUnusedTypeArgumentsForMethodInvocation
public static final String OPTION_ReportUnusedTypeArgumentsForMethodInvocation
- See Also:
- Constant Field Values
OPTION_Source
public static final String OPTION_Source
- See Also:
- Constant Field Values
OPTION_TargetPlatform
public static final String OPTION_TargetPlatform
- See Also:
- Constant Field Values
OPTION_Compliance
public static final String OPTION_Compliance
- See Also:
- Constant Field Values
OPTION_Encoding
public static final String OPTION_Encoding
- See Also:
- Constant Field Values
OPTION_MaxProblemPerUnit
public static final String OPTION_MaxProblemPerUnit
- See Also:
- Constant Field Values
OPTION_TaskTags
public static final String OPTION_TaskTags
- See Also:
- Constant Field Values
OPTION_TaskPriorities
public static final String OPTION_TaskPriorities
- See Also:
- Constant Field Values
OPTION_TaskCaseSensitive
public static final String OPTION_TaskCaseSensitive
- See Also:
- Constant Field Values
OPTION_InlineJsr
public static final String OPTION_InlineJsr
- See Also:
- Constant Field Values
OPTION_ReportNullReference
public static final String OPTION_ReportNullReference
- See Also:
- Constant Field Values
OPTION_ReportPotentialNullReference
public static final String OPTION_ReportPotentialNullReference
- See Also:
- Constant Field Values
OPTION_ReportRedundantNullCheck
public static final String OPTION_ReportRedundantNullCheck
- See Also:
- Constant Field Values
OPTION_ReportAutoboxing
public static final String OPTION_ReportAutoboxing
- See Also:
- Constant Field Values
OPTION_ReportAnnotationSuperInterface
public static final String OPTION_ReportAnnotationSuperInterface
- See Also:
- Constant Field Values
OPTION_ReportMissingOverrideAnnotation
public static final String OPTION_ReportMissingOverrideAnnotation
- See Also:
- Constant Field Values
OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
public static final String OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
- See Also:
- Constant Field Values
OPTION_ReportMissingDeprecatedAnnotation
public static final String OPTION_ReportMissingDeprecatedAnnotation
- See Also:
- Constant Field Values
OPTION_ReportIncompleteEnumSwitch
public static final String OPTION_ReportIncompleteEnumSwitch
- See Also:
- Constant Field Values
OPTION_ReportForbiddenReference
public static final String OPTION_ReportForbiddenReference
- See Also:
- Constant Field Values
OPTION_ReportDiscouragedReference
public static final String OPTION_ReportDiscouragedReference
- See Also:
- Constant Field Values
OPTION_SuppressWarnings
public static final String OPTION_SuppressWarnings
- See Also:
- Constant Field Values
OPTION_SuppressOptionalErrors
public static final String OPTION_SuppressOptionalErrors
- See Also:
- Constant Field Values
OPTION_ReportUnhandledWarningToken
public static final String OPTION_ReportUnhandledWarningToken
- See Also:
- Constant Field Values
OPTION_ReportUnusedWarningToken
public static final String OPTION_ReportUnusedWarningToken
- See Also:
- Constant Field Values
OPTION_ReportUnusedLabel
public static final String OPTION_ReportUnusedLabel
- See Also:
- Constant Field Values
OPTION_FatalOptionalError
public static final String OPTION_FatalOptionalError
- See Also:
- Constant Field Values
OPTION_ReportParameterAssignment
public static final String OPTION_ReportParameterAssignment
- See Also:
- Constant Field Values
OPTION_ReportFallthroughCase
public static final String OPTION_ReportFallthroughCase
- See Also:
- Constant Field Values
OPTION_ReportOverridingMethodWithoutSuperInvocation
public static final String OPTION_ReportOverridingMethodWithoutSuperInvocation
- See Also:
- Constant Field Values
OPTION_GenerateClassFiles
public static final String OPTION_GenerateClassFiles
- See Also:
- Constant Field Values
OPTION_Process_Annotations
public static final String OPTION_Process_Annotations
- See Also:
- Constant Field Values
OPTION_ReportRedundantSuperinterface
public static final String OPTION_ReportRedundantSuperinterface
- See Also:
- Constant Field Values
OPTION_ReportComparingIdentical
public static final String OPTION_ReportComparingIdentical
- See Also:
- Constant Field Values
OPTION_ReportMissingSynchronizedOnInheritedMethod
public static final String OPTION_ReportMissingSynchronizedOnInheritedMethod
- See Also:
- Constant Field Values
OPTION_ReportMissingHashCodeMethod
public static final String OPTION_ReportMissingHashCodeMethod
- See Also:
- Constant Field Values
OPTION_ReportDeadCode
public static final String OPTION_ReportDeadCode
- See Also:
- Constant Field Values
OPTION_ReportDeadCodeInTrivialIfStatement
public static final String OPTION_ReportDeadCodeInTrivialIfStatement
- See Also:
- Constant Field Values
OPTION_ReportTasks
public static final String OPTION_ReportTasks
- See Also:
- Constant Field Values
OPTION_ReportUnusedObjectAllocation
public static final String OPTION_ReportUnusedObjectAllocation
- See Also:
- Constant Field Values
OPTION_IncludeNullInfoFromAsserts
public static final String OPTION_IncludeNullInfoFromAsserts
- See Also:
- Constant Field Values
OPTION_ReportMethodCanBeStatic
public static final String OPTION_ReportMethodCanBeStatic
- See Also:
- Constant Field Values
OPTION_ReportMethodCanBePotentiallyStatic
public static final String OPTION_ReportMethodCanBePotentiallyStatic
- See Also:
- Constant Field Values
OPTION_ReportRedundantSpecificationOfTypeArguments
public static final String OPTION_ReportRedundantSpecificationOfTypeArguments
- See Also:
- Constant Field Values
GENERATE
public static final String GENERATE
- Possible values for configurable options
- See Also:
- Constant Field Values
DO_NOT_GENERATE
public static final String DO_NOT_GENERATE
- See Also:
- Constant Field Values
PRESERVE
public static final String PRESERVE
- See Also:
- Constant Field Values
OPTIMIZE_OUT
public static final String OPTIMIZE_OUT
- See Also:
- Constant Field Values
VERSION_1_1
public static final String VERSION_1_1
- See Also:
- Constant Field Values
VERSION_1_2
public static final String VERSION_1_2
- See Also:
- Constant Field Values
VERSION_1_3
public static final String VERSION_1_3
- See Also:
- Constant Field Values
VERSION_1_4
public static final String VERSION_1_4
- See Also:
- Constant Field Values
VERSION_JSR14
public static final String VERSION_JSR14
- See Also:
- Constant Field Values
VERSION_CLDC1_1
public static final String VERSION_CLDC1_1
- See Also:
- Constant Field Values
VERSION_1_5
public static final String VERSION_1_5
- See Also:
- Constant Field Values
VERSION_1_6
public static final String VERSION_1_6
- See Also:
- Constant Field Values
VERSION_1_7
public static final String VERSION_1_7
- See Also:
- Constant Field Values
ERROR
public static final String ERROR
- See Also:
- Constant Field Values
WARNING
public static final String WARNING
- See Also:
- Constant Field Values
IGNORE
public static final String IGNORE
- See Also:
- Constant Field Values
ENABLED
public static final String ENABLED
- See Also:
- Constant Field Values
DISABLED
public static final String DISABLED
- See Also:
- Constant Field Values
PUBLIC
public static final String PUBLIC
- See Also:
- Constant Field Values
PROTECTED
public static final String PROTECTED
- See Also:
- Constant Field Values
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
PRIVATE
public static final String PRIVATE
- See Also:
- Constant Field Values
RETURN_TAG
public static final String RETURN_TAG
- See Also:
- Constant Field Values
NO_TAG
public static final String NO_TAG
- See Also:
- Constant Field Values
ALL_STANDARD_TAGS
public static final String ALL_STANDARD_TAGS
- See Also:
- Constant Field Values
MethodWithConstructorName
public static final 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
- See Also:
- Constant Field Values
OverriddenPackageDefaultMethod
public static final int OverriddenPackageDefaultMethod
- See Also:
- Constant Field Values
UsingDeprecatedAPI
public static final int UsingDeprecatedAPI
- See Also:
- Constant Field Values
MaskedCatchBlock
public static final int MaskedCatchBlock
- See Also:
- Constant Field Values
UnusedLocalVariable
public static final int UnusedLocalVariable
- See Also:
- Constant Field Values
UnusedArgument
public static final int UnusedArgument
- See Also:
- Constant Field Values
NoImplicitStringConversion
public static final int NoImplicitStringConversion
- See Also:
- Constant Field Values
AccessEmulation
public static final int AccessEmulation
- See Also:
- Constant Field Values
NonExternalizedString
public static final int NonExternalizedString
- See Also:
- Constant Field Values
AssertUsedAsAnIdentifier
public static final int AssertUsedAsAnIdentifier
- See Also:
- Constant Field Values
UnusedImport
public static final int UnusedImport
- See Also:
- Constant Field Values
NonStaticAccessToStatic
public static final int NonStaticAccessToStatic
- See Also:
- Constant Field Values
Task
public static final int Task
- See Also:
- Constant Field Values
NoEffectAssignment
public static final int NoEffectAssignment
- See Also:
- Constant Field Values
IncompatibleNonInheritedInterfaceMethod
public static final int IncompatibleNonInheritedInterfaceMethod
- See Also:
- Constant Field Values
UnusedPrivateMember
public static final int UnusedPrivateMember
- See Also:
- Constant Field Values
LocalVariableHiding
public static final int LocalVariableHiding
- See Also:
- Constant Field Values
FieldHiding
public static final int FieldHiding
- See Also:
- Constant Field Values
AccidentalBooleanAssign
public static final int AccidentalBooleanAssign
- See Also:
- Constant Field Values
EmptyStatement
public static final int EmptyStatement
- See Also:
- Constant Field Values
MissingJavadocComments
public static final int MissingJavadocComments
- See Also:
- Constant Field Values
MissingJavadocTags
public static final int MissingJavadocTags
- See Also:
- Constant Field Values
UnqualifiedFieldAccess
public static final int UnqualifiedFieldAccess
- See Also:
- Constant Field Values
UnusedDeclaredThrownException
public static final int UnusedDeclaredThrownException
- See Also:
- Constant Field Values
FinallyBlockNotCompleting
public static final int FinallyBlockNotCompleting
- See Also:
- Constant Field Values
InvalidJavadoc
public static final int InvalidJavadoc
- See Also:
- Constant Field Values
UnnecessaryTypeCheck
public static final int UnnecessaryTypeCheck
- See Also:
- Constant Field Values
UndocumentedEmptyBlock
public static final int UndocumentedEmptyBlock
- See Also:
- Constant Field Values
IndirectStaticAccess
public static final int IndirectStaticAccess
- See Also:
- Constant Field Values
UnnecessaryElse
public static final int UnnecessaryElse
- See Also:
- Constant Field Values
UncheckedTypeOperation
public static final int UncheckedTypeOperation
- See Also:
- Constant Field Values
FinalParameterBound
public static final int FinalParameterBound
- See Also:
- Constant Field Values
MissingSerialVersion
public static final int MissingSerialVersion
- See Also:
- Constant Field Values
EnumUsedAsAnIdentifier
public static final int EnumUsedAsAnIdentifier
- See Also:
- Constant Field Values
ForbiddenReference
public static final int ForbiddenReference
- See Also:
- Constant Field Values
VarargsArgumentNeedCast
public static final int VarargsArgumentNeedCast
- See Also:
- Constant Field Values
NullReference
public static final int NullReference
- See Also:
- Constant Field Values
AutoBoxing
public static final int AutoBoxing
- See Also:
- Constant Field Values
AnnotationSuperInterface
public static final int AnnotationSuperInterface
- See Also:
- Constant Field Values
TypeHiding
public static final int TypeHiding
- See Also:
- Constant Field Values
MissingOverrideAnnotation
public static final int MissingOverrideAnnotation
- See Also:
- Constant Field Values
IncompleteEnumSwitch
public static final int IncompleteEnumSwitch
- See Also:
- Constant Field Values
MissingDeprecatedAnnotation
public static final int MissingDeprecatedAnnotation
- See Also:
- Constant Field Values
DiscouragedReference
public static final int DiscouragedReference
- See Also:
- Constant Field Values
UnhandledWarningToken
public static final int UnhandledWarningToken
- See Also:
- Constant Field Values
RawTypeReference
public static final int RawTypeReference
- See Also:
- Constant Field Values
UnusedLabel
public static final int UnusedLabel
- See Also:
- Constant Field Values
ParameterAssignment
public static final int ParameterAssignment
- See Also:
- Constant Field Values
FallthroughCase
public static final int FallthroughCase
- See Also:
- Constant Field Values
OverridingMethodWithoutSuperInvocation
public static final int OverridingMethodWithoutSuperInvocation
- See Also:
- Constant Field Values
PotentialNullReference
public static final int PotentialNullReference
- See Also:
- Constant Field Values
RedundantNullCheck
public static final int RedundantNullCheck
- See Also:
- Constant Field Values
MissingJavadocTagDescription
public static final int MissingJavadocTagDescription
- See Also:
- Constant Field Values
UnusedTypeArguments
public static final int UnusedTypeArguments
- See Also:
- Constant Field Values
UnusedWarningToken
public static final int UnusedWarningToken
- See Also:
- Constant Field Values
RedundantSuperinterface
public static final int RedundantSuperinterface
- See Also:
- Constant Field Values
ComparingIdentical
public static final int ComparingIdentical
- See Also:
- Constant Field Values
MissingSynchronizedModifierInInheritedMethod
public static final int MissingSynchronizedModifierInInheritedMethod
- See Also:
- Constant Field Values
ShouldImplementHashcode
public static final int ShouldImplementHashcode
- See Also:
- Constant Field Values
DeadCode
public static final int DeadCode
- See Also:
- Constant Field Values
Tasks
public static final int Tasks
- See Also:
- Constant Field Values
UnusedObjectAllocation
public static final int UnusedObjectAllocation
- See Also:
- Constant Field Values
MethodCanBeStatic
public static final int MethodCanBeStatic
- See Also:
- Constant Field Values
MethodCanBePotentiallyStatic
public static final int MethodCanBePotentiallyStatic
- See Also:
- Constant Field Values
RedundantSpecificationOfTypeArguments
public static final int RedundantSpecificationOfTypeArguments
- See Also:
- Constant Field Values
errorThreshold
protected IrritantSet errorThreshold
- Defaults defined at
IrritantSet.COMPILER_DEFAULT_ERRORS
- See Also:
resetDefaults()
warningThreshold
protected IrritantSet warningThreshold
- Defaults defined at
IrritantSet.COMPILER_DEFAULT_WARNINGS
- See Also:
resetDefaults()
produceDebugAttributes
public int produceDebugAttributes
- Classfile debug information, may contain source file name, line numbers, local variable tables, etc...
complianceLevel
public long complianceLevel
- Compliance level for the compiler, refers to a JDK version, e.g.
ClassFileConstants.JDK1_4
originalComplianceLevel
public long originalComplianceLevel
- Original 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 sourceLevel
- Java source level, refers to a JDK version, e.g.
ClassFileConstants.JDK1_4
originalSourceLevel
public long originalSourceLevel
- Original Java source level, refers to a JDK version, e.g.
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=323633
targetJDK
public long targetJDK
- VM target level, refers to a JDK version, e.g.
ClassFileConstants.JDK1_4
defaultEncoding
public String defaultEncoding
- Source encoding format
verbose
public boolean verbose
- Compiler trace verbosity
produceReferenceInfo
public boolean produceReferenceInfo
- Indicates whether reference info is desired
preserveAllLocalVariables
public boolean preserveAllLocalVariables
- Indicates if unused/optimizable local variables need to be preserved (debugging purpose)
parseLiteralExpressionsAsConstants
public boolean parseLiteralExpressionsAsConstants
- Indicates whether literal expressions are inlined at parse-time or not
maxProblemsPerUnit
public int maxProblemsPerUnit
- Max problems per compilation unit
taskTags
public char[][] taskTags
- Tags used to recognize tasks in comments
taskPriorities
public char[][] taskPriorities
- Respective priorities of recognized task tags
isTaskCaseSensitive
public boolean isTaskCaseSensitive
- Indicate whether tag detection is case sensitive or not
reportDeprecationInsideDeprecatedCode
public boolean reportDeprecationInsideDeprecatedCode
- Specify whether deprecation inside deprecated code is to be reported
reportDeprecationWhenOverridingDeprecatedMethod
public boolean reportDeprecationWhenOverridingDeprecatedMethod
- Specify whether override of deprecated method is to be reported
reportUnusedParameterWhenImplementingAbstract
public boolean reportUnusedParameterWhenImplementingAbstract
- Specify if should report unused parameter when implementing abstract method
reportUnusedParameterWhenOverridingConcrete
public boolean reportUnusedParameterWhenOverridingConcrete
- Specify if should report unused parameter when overriding concrete method
reportUnusedParameterIncludeDocCommentReference
public boolean reportUnusedParameterIncludeDocCommentReference
- Specify if should report documented unused parameter (in javadoc)
reportUnusedDeclaredThrownExceptionWhenOverriding
public boolean reportUnusedDeclaredThrownExceptionWhenOverriding
- Specify if should reported unused declared thrown exception when overriding method
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
public boolean reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
- Specify if should reported unused declared thrown exception when documented in javadoc
reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
public boolean reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
- Specify if should reported unused declared thrown exception when Exception or Throwable
reportSpecialParameterHidingField
public boolean reportSpecialParameterHidingField
- Specify whether should report constructor/setter method parameter hiding
reportDeadCodeInTrivialIfStatement
public boolean reportDeadCodeInTrivialIfStatement
- Specify whether trivial deadcode pattern is to be reported (e.g. if (DEBUG) ...)
docCommentSupport
public boolean docCommentSupport
- Master flag controlling whether doc comment should be processed
reportInvalidJavadocTags
public boolean reportInvalidJavadocTags
- Specify if invalid javadoc shall be reported
reportInvalidJavadocTagsVisibility
public int reportInvalidJavadocTagsVisibility
- Only report invalid javadoc above a given level of visibility of associated construct
reportInvalidJavadocTagsDeprecatedRef
public boolean reportInvalidJavadocTagsDeprecatedRef
- Specify if deprecated javadoc ref is allowed
reportInvalidJavadocTagsNotVisibleRef
public boolean reportInvalidJavadocTagsNotVisibleRef
- Specify if non visible javadoc ref is allowed
reportMissingJavadocTagDescription
public String reportMissingJavadocTagDescription
- Specify when to report missing javadoc tag description
reportMissingJavadocTagsVisibility
public int reportMissingJavadocTagsVisibility
- Only report missing javadoc tags above a given level of visibility of associated construct
reportMissingJavadocTagsOverriding
public boolean reportMissingJavadocTagsOverriding
- Specify if need to flag missing javadoc tags for overriding method
reportMissingJavadocTagsMethodTypeParameters
public boolean reportMissingJavadocTagsMethodTypeParameters
- Specify if need to flag missing javadoc tags for method type parameters (java 1.5 and above)
reportMissingJavadocCommentsVisibility
public int reportMissingJavadocCommentsVisibility
- Only report missing javadoc comment above a given level of visibility of associated construct
reportMissingJavadocCommentsOverriding
public boolean reportMissingJavadocCommentsOverriding
- Specify if need to flag missing javadoc comment for overriding method
inlineJsrBytecode
public boolean inlineJsrBytecode
- Indicate whether the JSR bytecode should be inlined to avoid its presence in classfile
suppressWarnings
public boolean suppressWarnings
- Indicate if @SuppressWarning annotations are activated
suppressOptionalErrors
public boolean suppressOptionalErrors
- Indicate if @SuppressWarning annotations should also suppress optional errors
treatOptionalErrorAsFatal
public boolean treatOptionalErrorAsFatal
- Specify if should treat optional error as fatal or just like warning
performMethodsFullRecovery
public boolean performMethodsFullRecovery
- Specify if parser should perform structural recovery in methods
performStatementsRecovery
public boolean performStatementsRecovery
- Specify if parser perform statements recovery
processAnnotations
public boolean processAnnotations
- Control whether annotation processing is enabled
storeAnnotations
public boolean storeAnnotations
- Store annotations
reportMissingOverrideAnnotationForInterfaceMethodImplementation
public boolean reportMissingOverrideAnnotationForInterfaceMethodImplementation
- Specify if need to report missing override annotation for a method implementing an interface method (java 1.6 and above)
generateClassFiles
public boolean generateClassFiles
- Indicate if annotation processing generates classfiles
ignoreMethodBodies
public boolean ignoreMethodBodies
- Indicate if method bodies should be ignored
includeNullInfoFromAsserts
public boolean includeNullInfoFromAsserts
- Raise null related warnings for variables tainted inside an assert statement (java 1.4 and above)
reportUnavoidableGenericTypeProblems
public boolean reportUnavoidableGenericTypeProblems
- Controls whether forced generic type problems get reported
warningTokens
public static final String[] warningTokens
CompilerOptions
public CompilerOptions()
- Initializing the compiler options with defaults
CompilerOptions
public CompilerOptions(Map settings)
- Initializing the compiler options with external settings
- Parameters:
settings
-
CompilerOptions
public CompilerOptions(Map settings,
boolean parseLiteralExpressionsAsConstants)
- Deprecated. used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors
optionKeyFromIrritant
public static String optionKeyFromIrritant(int irritant)
- 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
public static String versionFromJdkLevel(long jdkLevel)
versionToJdkLevel
public static long versionToJdkLevel(Object versionID)
warningOptionNames
public static String[] warningOptionNames()
- Return all warning option names for use as keys in compiler options maps.
- Returns:
- all warning option names
warningTokenFromIrritant
public static String warningTokenFromIrritant(int irritant)
- For suppressable warnings
warningTokenToIrritants
public static IrritantSet warningTokenToIrritants(String warningToken)
getMap
public Map getMap()
getSeverity
public int getSeverity(int irritant)
getSeverityString
public String getSeverityString(int irritant)
getVisibilityString
public String getVisibilityString(int level)
isAnyEnabled
public boolean isAnyEnabled(IrritantSet irritants)
resetDefaults
protected void resetDefaults()
set
public void set(Map optionsMap)
toString
public String toString()
- Overrides:
toString
in class Object
updateSeverity
protected void updateSeverity(int irritant,
Object severityString)
Copyright © 2012. All Rights Reserved.