org.eclipse.jdt.internal.compiler.impl
Class CompilerOptions

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.impl.CompilerOptions
Direct Known Subclasses:
JmlCompilerOptions, RacOptions

public class CompilerOptions
extends java.lang.Object


Field Summary
static long AccessEmulation
           
static long AccidentalBooleanAssign
           
static java.lang.String ALL_STANDARD_TAGS
           
static long AnnotationSuperInterface
           
static long AssertUsedAsAnIdentifier
           
static long AutoBoxing
           
 long complianceLevel
           
static java.lang.String DEFAULT
           
 java.lang.String defaultEncoding
           
static java.lang.String DISABLED
           
static long DiscouragedReference
           
static java.lang.String DO_NOT_GENERATE
           
 boolean docCommentSupport
           
static long EmptyStatement
           
static java.lang.String ENABLED
           
static long EnumUsedAsAnIdentifier
           
static java.lang.String ERROR
           
 long errorThreshold
           
static long FallthroughCase
           
static long FieldHiding
           
static long FinallyBlockNotCompleting
           
static long FinalParameterBound
           
static long ForbiddenReference
           
static java.lang.String GENERATE
          Possible values for configurable options
 boolean generateClassFiles
           
static java.lang.String IGNORE
           
static long IncompatibleNonInheritedInterfaceMethod
           
static long IncompleteEnumSwitch
           
static long IndirectStaticAccess
           
 boolean inlineJsrBytecode
           
static long InvalidJavadoc
           
 boolean isTaskCaseSensitive
           
 boolean jml2CheckerEnabled
           
 boolean jml2CompilerEnabled
           
 boolean jmlDbcEnabled
           
 boolean jmlDefaultIsNonNull
           
 boolean jmlEnabled
           
 java.lang.String jmlEsc2CommandLineArgs
           
 boolean jmlEsc2EchoOutputEnabled
           
 boolean jmlEsc2Enabled
           
 boolean jmlEscEnabled
           
 boolean jmlEscGovernsRac
           
 java.lang.String jmlEscProverStrategy
           
 boolean jmlFspvEnabled
           
 boolean jmlNewLoopSemanticsEnabled
           
 boolean jmlNullityCountsEnabled
           
 boolean jmlRacEnabled
           
 java.lang.String jmlSimplifyPath
           
 java.lang.String jmlSpecPath
           
static long LocalVariableHiding
           
static long MaskedCatchBlock
           
 int maxProblemsPerUnit
           
static long MethodWithConstructorName
          Bit mask for configurable problems (error/warning threshold)
static long MissingDeprecatedAnnotation
           
static long MissingJavadocComments
           
static long MissingJavadocTagDescription
           
static long MissingJavadocTags
           
static long MissingOverrideAnnotation
           
static long MissingSerialVersion
           
static java.lang.String NO_TAG
           
static long NoEffectAssignment
           
static long NoImplicitStringConversion
           
static long NonExternalizedString
           
static long NonStaticAccessToStatic
           
static long NullReference
           
static java.lang.String OPTIMIZE_OUT
           
static java.lang.String OPTION_Compliance
           
static java.lang.String OPTION_DocCommentSupport
           
static java.lang.String OPTION_Encoding
           
static java.lang.String OPTION_FatalOptionalError
           
static java.lang.String OPTION_GenerateClassFiles
           
static java.lang.String OPTION_InlineJsr
           
static java.lang.String OPTION_LineNumberAttribute
           
static java.lang.String OPTION_LocalVariableAttribute
          Option IDs
static java.lang.String OPTION_MaxProblemPerUnit
           
static java.lang.String OPTION_PreserveUnusedLocal
           
static java.lang.String OPTION_Process_Annotations
           
static java.lang.String OPTION_ReportAnnotationSuperInterface
           
static java.lang.String OPTION_ReportAssertIdentifier
           
static java.lang.String OPTION_ReportAutoboxing
           
static java.lang.String OPTION_ReportDeprecation
           
static java.lang.String OPTION_ReportDeprecationInDeprecatedCode
           
static java.lang.String OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
           
static java.lang.String OPTION_ReportDiscouragedReference
           
static java.lang.String OPTION_ReportEmptyStatement
           
static java.lang.String OPTION_ReportEnumIdentifier
           
static java.lang.String OPTION_ReportFallthroughCase
           
static java.lang.String OPTION_ReportFieldHiding
           
static java.lang.String OPTION_ReportFinallyBlockNotCompletingNormally
           
static java.lang.String OPTION_ReportFinalParameterBound
           
static java.lang.String OPTION_ReportForbiddenReference
           
static java.lang.String OPTION_ReportHiddenCatchBlock
           
static java.lang.String OPTION_ReportIncompatibleNonInheritedInterfaceMethod
           
static java.lang.String OPTION_ReportIncompleteEnumSwitch
           
static java.lang.String OPTION_ReportIndirectStaticAccess
           
static java.lang.String OPTION_ReportInvalidAnnotation
           
static java.lang.String OPTION_ReportInvalidJavadoc
           
static java.lang.String OPTION_ReportInvalidJavadocTags
           
static java.lang.String OPTION_ReportInvalidJavadocTagsDeprecatedRef
           
static java.lang.String OPTION_ReportInvalidJavadocTagsNotVisibleRef
           
static java.lang.String OPTION_ReportInvalidJavadocTagsVisibility
           
static java.lang.String OPTION_ReportLocalVariableHiding
           
static java.lang.String OPTION_ReportMethodWithConstructorName
           
static java.lang.String OPTION_ReportMissingAnnotation
           
static java.lang.String OPTION_ReportMissingDeprecatedAnnotation
           
static java.lang.String OPTION_ReportMissingJavadoc
           
static java.lang.String OPTION_ReportMissingJavadocComments
           
static java.lang.String OPTION_ReportMissingJavadocCommentsOverriding
           
static java.lang.String OPTION_ReportMissingJavadocCommentsVisibility
           
static java.lang.String OPTION_ReportMissingJavadocTagDescription
           
static java.lang.String OPTION_ReportMissingJavadocTags
           
static java.lang.String OPTION_ReportMissingJavadocTagsOverriding
           
static java.lang.String OPTION_ReportMissingJavadocTagsVisibility
           
static java.lang.String OPTION_ReportMissingOverrideAnnotation
           
static java.lang.String OPTION_ReportMissingSerialVersion
           
static java.lang.String OPTION_ReportNoEffectAssignment
           
static java.lang.String OPTION_ReportNoImplicitStringConversion
           
static java.lang.String OPTION_ReportNonExternalizedStringLiteral
           
static java.lang.String OPTION_ReportNonStaticAccessToStatic
           
static java.lang.String OPTION_ReportNullReference
           
static java.lang.String OPTION_ReportOverridingMethodWithoutSuperInvocation
           
static java.lang.String OPTION_ReportOverridingPackageDefaultMethod
           
static java.lang.String OPTION_ReportParameterAssignment
           
static java.lang.String OPTION_ReportPossibleAccidentalBooleanAssignment
           
static java.lang.String OPTION_ReportPotentialNullReference
           
static java.lang.String OPTION_ReportRawTypeReference
           
static java.lang.String OPTION_ReportRedundantNullCheck
           
static java.lang.String OPTION_ReportRedundantSuperinterface
           
static java.lang.String OPTION_ReportSpecialParameterHidingField
           
static java.lang.String OPTION_ReportSyntheticAccessEmulation
           
static java.lang.String OPTION_ReportTypeParameterHiding
           
static java.lang.String OPTION_ReportUncheckedTypeOperation
           
static java.lang.String OPTION_ReportUndocumentedEmptyBlock
           
static java.lang.String OPTION_ReportUnhandledWarningToken
           
static java.lang.String OPTION_ReportUnnecessaryElse
           
static java.lang.String OPTION_ReportUnnecessaryTypeCheck
           
static java.lang.String OPTION_ReportUnqualifiedFieldAccess
           
static java.lang.String OPTION_ReportUnusedDeclaredThrownException
           
static java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
           
static java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
           
static java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
           
static java.lang.String OPTION_ReportUnusedImport
           
static java.lang.String OPTION_ReportUnusedLabel
           
static java.lang.String OPTION_ReportUnusedLocal
           
static java.lang.String OPTION_ReportUnusedParameter
           
static java.lang.String OPTION_ReportUnusedParameterIncludeDocCommentReference
           
static java.lang.String OPTION_ReportUnusedParameterWhenImplementingAbstract
           
static java.lang.String OPTION_ReportUnusedParameterWhenOverridingConcrete
           
static java.lang.String OPTION_ReportUnusedPrivateMember
           
static java.lang.String OPTION_ReportUnusedTypeArgumentsForMethodInvocation
           
static java.lang.String OPTION_ReportUnusedWarningToken
           
static java.lang.String OPTION_ReportVarargsArgumentNeedCast
           
static java.lang.String OPTION_Source
           
static java.lang.String OPTION_SourceFileAttribute
           
static java.lang.String OPTION_SuppressWarnings
           
static java.lang.String OPTION_TargetPlatform
           
static java.lang.String OPTION_TaskCaseSensitive
           
static java.lang.String OPTION_TaskPriorities
           
static java.lang.String OPTION_TaskTags
           
static long OverriddenPackageDefaultMethod
           
static long OverridingMethodWithoutSuperInvocation
           
static long ParameterAssignment
           
 boolean parseLiteralExpressionsAsConstants
           
 boolean performMethodsFullRecovery
           
 boolean performStatementsRecovery
           
static long PotentialNullReference
           
static java.lang.String PRESERVE
           
 boolean preserveAllLocalVariables
           
static java.lang.String PRIVATE
           
 boolean processAnnotations
           
 int produceDebugAttributes
           
 boolean produceReferenceInfo
           
static java.lang.String PROTECTED
           
static java.lang.String PUBLIC
           
static long RawTypeReference
           
static long RedundantNullCheck
           
static long RedundantSuperinterface
           
 boolean reportDeprecationInsideDeprecatedCode
           
 boolean reportDeprecationWhenOverridingDeprecatedMethod
           
 boolean reportInvalidJavadocTags
           
 boolean reportInvalidJavadocTagsDeprecatedRef
           
 boolean reportInvalidJavadocTagsNotVisibleRef
           
 int reportInvalidJavadocTagsVisibility
           
 boolean reportMissingJavadocCommentsOverriding
           
 int reportMissingJavadocCommentsVisibility
           
 java.lang.String reportMissingJavadocTagDescription
           
 boolean reportMissingJavadocTagsOverriding
           
 int reportMissingJavadocTagsVisibility
           
 boolean reportSpecialParameterHidingField
           
 boolean reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
           
 boolean reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
           
 boolean reportUnusedDeclaredThrownExceptionWhenOverriding
           
 boolean reportUnusedParameterIncludeDocCommentReference
           
 boolean reportUnusedParameterWhenImplementingAbstract
           
 boolean reportUnusedParameterWhenOverridingConcrete
           
static java.lang.String RETURN_TAG
           
 long sourceLevel
           
 boolean storeAnnotations
           
 CompilerOptions subOptions
           
 boolean suppressWarnings
           
 long targetJDK
           
static long Task
           
 char[][] taskPriorites
           
 char[][] taskTags
           
 boolean treatOptionalErrorAsFatal
           
static long TypeHiding
           
static long UncheckedTypeOperation
           
static long UndocumentedEmptyBlock
           
static long UnhandledWarningToken
           
static long UnnecessaryElse
           
static long UnnecessaryTypeCheck
           
static long UnqualifiedFieldAccess
           
static long UnusedArgument
           
static long UnusedDeclaredThrownException
           
static long UnusedImport
           
static long UnusedLabel
           
static long UnusedLocalVariable
           
static long UnusedPrivateMember
           
static long UnusedTypeArguments
           
static long UnusedWarningToken
           
static long UsingDeprecatedAPI
           
static long VarargsArgumentNeedCast
           
 boolean verbose
           
static java.lang.String VERSION_1_1
           
static java.lang.String VERSION_1_2
           
static java.lang.String VERSION_1_3
           
static java.lang.String VERSION_1_4
           
static java.lang.String VERSION_1_5
           
static java.lang.String VERSION_1_6
           
static java.lang.String VERSION_1_7
           
static java.lang.String VERSION_CLDC1_1
           
static java.lang.String VERSION_JSR14
           
static java.lang.String WARNING
           
 long warningThreshold
           
static java.lang.String[] warningTokens
           
 
Constructor Summary
CompilerOptions()
          Initializing the compiler options with defaults
CompilerOptions(java.util.Map settings)
          Initializing the compiler options with external settings
CompilerOptions(java.util.Map settings, boolean parseLiteralExpressionsAsConstants)
          Deprecated. used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors
 
Method Summary
 java.util.Map getMap()
           
 int getSeverity(long irritant)
           
 java.lang.String getSeverityString(long irritant)
           
 java.lang.String getVisibilityString(int level)
           
static java.lang.String optionKeyFromIrritant(long irritant)
          Return the most specific option key controlling this irritant.
static long optionKeyToIrritant(java.lang.String optionName)
           
 void set(java.util.Map optionsMap)
           
 java.lang.String toString()
           
 void updateSeverity(long irritant, java.lang.Object severityString)
           
 boolean useNonNullTypeSystem()
           
static java.lang.String versionFromJdkLevel(long jdkLevel)
           
static long versionToJdkLevel(java.lang.Object versionID)
           
static java.lang.String[] warningOptionNames()
          Return all warning option names for use as keys in compiler options maps.
static java.lang.String warningTokenFromIrritant(long irritant)
          For suppressable warnings
static long warningTokenToIrritants(java.lang.String warningToken)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPTION_LocalVariableAttribute

public static final java.lang.String OPTION_LocalVariableAttribute
Option IDs

See Also:
Constant Field Values

OPTION_LineNumberAttribute

public static final java.lang.String OPTION_LineNumberAttribute
See Also:
Constant Field Values

OPTION_SourceFileAttribute

public static final java.lang.String OPTION_SourceFileAttribute
See Also:
Constant Field Values

OPTION_PreserveUnusedLocal

public static final java.lang.String OPTION_PreserveUnusedLocal
See Also:
Constant Field Values

OPTION_DocCommentSupport

public static final java.lang.String OPTION_DocCommentSupport
See Also:
Constant Field Values

OPTION_ReportMethodWithConstructorName

public static final java.lang.String OPTION_ReportMethodWithConstructorName
See Also:
Constant Field Values

OPTION_ReportOverridingPackageDefaultMethod

public static final java.lang.String OPTION_ReportOverridingPackageDefaultMethod
See Also:
Constant Field Values

OPTION_ReportDeprecation

public static final java.lang.String OPTION_ReportDeprecation
See Also:
Constant Field Values

OPTION_ReportDeprecationInDeprecatedCode

public static final java.lang.String OPTION_ReportDeprecationInDeprecatedCode
See Also:
Constant Field Values

OPTION_ReportDeprecationWhenOverridingDeprecatedMethod

public static final java.lang.String OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
See Also:
Constant Field Values

OPTION_ReportHiddenCatchBlock

public static final java.lang.String OPTION_ReportHiddenCatchBlock
See Also:
Constant Field Values

OPTION_ReportUnusedLocal

public static final java.lang.String OPTION_ReportUnusedLocal
See Also:
Constant Field Values

OPTION_ReportUnusedParameter

public static final java.lang.String OPTION_ReportUnusedParameter
See Also:
Constant Field Values

OPTION_ReportUnusedParameterWhenImplementingAbstract

public static final java.lang.String OPTION_ReportUnusedParameterWhenImplementingAbstract
See Also:
Constant Field Values

OPTION_ReportUnusedParameterWhenOverridingConcrete

public static final java.lang.String OPTION_ReportUnusedParameterWhenOverridingConcrete
See Also:
Constant Field Values

OPTION_ReportUnusedParameterIncludeDocCommentReference

public static final java.lang.String OPTION_ReportUnusedParameterIncludeDocCommentReference
See Also:
Constant Field Values

OPTION_ReportUnusedImport

public static final java.lang.String OPTION_ReportUnusedImport
See Also:
Constant Field Values

OPTION_ReportSyntheticAccessEmulation

public static final java.lang.String OPTION_ReportSyntheticAccessEmulation
See Also:
Constant Field Values

OPTION_ReportNoEffectAssignment

public static final java.lang.String OPTION_ReportNoEffectAssignment
See Also:
Constant Field Values

OPTION_ReportLocalVariableHiding

public static final java.lang.String OPTION_ReportLocalVariableHiding
See Also:
Constant Field Values

OPTION_ReportSpecialParameterHidingField

public static final java.lang.String OPTION_ReportSpecialParameterHidingField
See Also:
Constant Field Values

OPTION_ReportFieldHiding

public static final java.lang.String OPTION_ReportFieldHiding
See Also:
Constant Field Values

OPTION_ReportTypeParameterHiding

public static final java.lang.String OPTION_ReportTypeParameterHiding
See Also:
Constant Field Values

OPTION_ReportPossibleAccidentalBooleanAssignment

public static final java.lang.String OPTION_ReportPossibleAccidentalBooleanAssignment
See Also:
Constant Field Values

OPTION_ReportNonExternalizedStringLiteral

public static final java.lang.String OPTION_ReportNonExternalizedStringLiteral
See Also:
Constant Field Values

OPTION_ReportIncompatibleNonInheritedInterfaceMethod

public static final java.lang.String OPTION_ReportIncompatibleNonInheritedInterfaceMethod
See Also:
Constant Field Values

OPTION_ReportUnusedPrivateMember

public static final java.lang.String OPTION_ReportUnusedPrivateMember
See Also:
Constant Field Values

OPTION_ReportNoImplicitStringConversion

public static final java.lang.String OPTION_ReportNoImplicitStringConversion
See Also:
Constant Field Values

OPTION_ReportAssertIdentifier

public static final java.lang.String OPTION_ReportAssertIdentifier
See Also:
Constant Field Values

OPTION_ReportEnumIdentifier

public static final java.lang.String OPTION_ReportEnumIdentifier
See Also:
Constant Field Values

OPTION_ReportNonStaticAccessToStatic

public static final java.lang.String OPTION_ReportNonStaticAccessToStatic
See Also:
Constant Field Values

OPTION_ReportIndirectStaticAccess

public static final java.lang.String OPTION_ReportIndirectStaticAccess
See Also:
Constant Field Values

OPTION_ReportEmptyStatement

public static final java.lang.String OPTION_ReportEmptyStatement
See Also:
Constant Field Values

OPTION_ReportUnnecessaryTypeCheck

public static final java.lang.String OPTION_ReportUnnecessaryTypeCheck
See Also:
Constant Field Values

OPTION_ReportUnnecessaryElse

public static final java.lang.String OPTION_ReportUnnecessaryElse
See Also:
Constant Field Values

OPTION_ReportUndocumentedEmptyBlock

public static final java.lang.String OPTION_ReportUndocumentedEmptyBlock
See Also:
Constant Field Values

OPTION_ReportInvalidJavadoc

public static final java.lang.String OPTION_ReportInvalidJavadoc
See Also:
Constant Field Values

OPTION_ReportInvalidJavadocTags

public static final java.lang.String OPTION_ReportInvalidJavadocTags
See Also:
Constant Field Values

OPTION_ReportInvalidJavadocTagsDeprecatedRef

public static final java.lang.String OPTION_ReportInvalidJavadocTagsDeprecatedRef
See Also:
Constant Field Values

OPTION_ReportInvalidJavadocTagsNotVisibleRef

public static final java.lang.String OPTION_ReportInvalidJavadocTagsNotVisibleRef
See Also:
Constant Field Values

OPTION_ReportInvalidJavadocTagsVisibility

public static final java.lang.String OPTION_ReportInvalidJavadocTagsVisibility
See Also:
Constant Field Values

OPTION_ReportMissingJavadocTags

public static final java.lang.String OPTION_ReportMissingJavadocTags
See Also:
Constant Field Values

OPTION_ReportMissingJavadocTagsVisibility

public static final java.lang.String OPTION_ReportMissingJavadocTagsVisibility
See Also:
Constant Field Values

OPTION_ReportMissingJavadocTagsOverriding

public static final java.lang.String OPTION_ReportMissingJavadocTagsOverriding
See Also:
Constant Field Values

OPTION_ReportMissingJavadocComments

public static final java.lang.String OPTION_ReportMissingJavadocComments
See Also:
Constant Field Values

OPTION_ReportMissingJavadocTagDescription

public static final java.lang.String OPTION_ReportMissingJavadocTagDescription
See Also:
Constant Field Values

OPTION_ReportMissingJavadocCommentsVisibility

public static final java.lang.String OPTION_ReportMissingJavadocCommentsVisibility
See Also:
Constant Field Values

OPTION_ReportMissingJavadocCommentsOverriding

public static final java.lang.String OPTION_ReportMissingJavadocCommentsOverriding
See Also:
Constant Field Values

OPTION_ReportFinallyBlockNotCompletingNormally

public static final java.lang.String OPTION_ReportFinallyBlockNotCompletingNormally
See Also:
Constant Field Values

OPTION_ReportUnusedDeclaredThrownException

public static final java.lang.String OPTION_ReportUnusedDeclaredThrownException
See Also:
Constant Field Values

OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding

public static final java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
See Also:
Constant Field Values

OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference

public static final java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
See Also:
Constant Field Values

OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable

public static final java.lang.String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
See Also:
Constant Field Values

OPTION_ReportUnqualifiedFieldAccess

public static final java.lang.String OPTION_ReportUnqualifiedFieldAccess
See Also:
Constant Field Values

OPTION_ReportUncheckedTypeOperation

public static final java.lang.String OPTION_ReportUncheckedTypeOperation
See Also:
Constant Field Values

OPTION_ReportRawTypeReference

public static final java.lang.String OPTION_ReportRawTypeReference
See Also:
Constant Field Values

OPTION_ReportFinalParameterBound

public static final java.lang.String OPTION_ReportFinalParameterBound
See Also:
Constant Field Values

OPTION_ReportMissingSerialVersion

public static final java.lang.String OPTION_ReportMissingSerialVersion
See Also:
Constant Field Values

OPTION_ReportVarargsArgumentNeedCast

public static final java.lang.String OPTION_ReportVarargsArgumentNeedCast
See Also:
Constant Field Values

OPTION_ReportUnusedTypeArgumentsForMethodInvocation

public static final java.lang.String OPTION_ReportUnusedTypeArgumentsForMethodInvocation
See Also:
Constant Field Values

OPTION_Source

public static final java.lang.String OPTION_Source
See Also:
Constant Field Values

OPTION_TargetPlatform

public static final java.lang.String OPTION_TargetPlatform
See Also:
Constant Field Values

OPTION_Compliance

public static final java.lang.String OPTION_Compliance
See Also:
Constant Field Values

OPTION_Encoding

public static final java.lang.String OPTION_Encoding
See Also:
Constant Field Values

OPTION_MaxProblemPerUnit

public static final java.lang.String OPTION_MaxProblemPerUnit
See Also:
Constant Field Values

OPTION_TaskTags

public static final java.lang.String OPTION_TaskTags
See Also:
Constant Field Values

OPTION_TaskPriorities

public static final java.lang.String OPTION_TaskPriorities
See Also:
Constant Field Values

OPTION_TaskCaseSensitive

public static final java.lang.String OPTION_TaskCaseSensitive
See Also:
Constant Field Values

OPTION_InlineJsr

public static final java.lang.String OPTION_InlineJsr
See Also:
Constant Field Values

OPTION_ReportNullReference

public static final java.lang.String OPTION_ReportNullReference
See Also:
Constant Field Values

OPTION_ReportPotentialNullReference

public static final java.lang.String OPTION_ReportPotentialNullReference
See Also:
Constant Field Values

OPTION_ReportRedundantNullCheck

public static final java.lang.String OPTION_ReportRedundantNullCheck
See Also:
Constant Field Values

OPTION_ReportAutoboxing

public static final java.lang.String OPTION_ReportAutoboxing
See Also:
Constant Field Values

OPTION_ReportAnnotationSuperInterface

public static final java.lang.String OPTION_ReportAnnotationSuperInterface
See Also:
Constant Field Values

OPTION_ReportMissingOverrideAnnotation

public static final java.lang.String OPTION_ReportMissingOverrideAnnotation
See Also:
Constant Field Values

OPTION_ReportMissingDeprecatedAnnotation

public static final java.lang.String OPTION_ReportMissingDeprecatedAnnotation
See Also:
Constant Field Values

OPTION_ReportIncompleteEnumSwitch

public static final java.lang.String OPTION_ReportIncompleteEnumSwitch
See Also:
Constant Field Values

OPTION_ReportForbiddenReference

public static final java.lang.String OPTION_ReportForbiddenReference
See Also:
Constant Field Values

OPTION_ReportDiscouragedReference

public static final java.lang.String OPTION_ReportDiscouragedReference
See Also:
Constant Field Values

OPTION_SuppressWarnings

public static final java.lang.String OPTION_SuppressWarnings
See Also:
Constant Field Values

OPTION_ReportUnhandledWarningToken

public static final java.lang.String OPTION_ReportUnhandledWarningToken
See Also:
Constant Field Values

OPTION_ReportUnusedWarningToken

public static final java.lang.String OPTION_ReportUnusedWarningToken
See Also:
Constant Field Values

OPTION_ReportUnusedLabel

public static final java.lang.String OPTION_ReportUnusedLabel
See Also:
Constant Field Values

OPTION_FatalOptionalError

public static final java.lang.String OPTION_FatalOptionalError
See Also:
Constant Field Values

OPTION_ReportParameterAssignment

public static final java.lang.String OPTION_ReportParameterAssignment
See Also:
Constant Field Values

OPTION_ReportFallthroughCase

public static final java.lang.String OPTION_ReportFallthroughCase
See Also:
Constant Field Values

OPTION_ReportOverridingMethodWithoutSuperInvocation

public static final java.lang.String OPTION_ReportOverridingMethodWithoutSuperInvocation
See Also:
Constant Field Values

OPTION_GenerateClassFiles

public static final java.lang.String OPTION_GenerateClassFiles
See Also:
Constant Field Values

OPTION_Process_Annotations

public static final java.lang.String OPTION_Process_Annotations
See Also:
Constant Field Values

OPTION_ReportRedundantSuperinterface

public static final java.lang.String OPTION_ReportRedundantSuperinterface
See Also:
Constant Field Values

OPTION_ReportInvalidAnnotation

public static final java.lang.String OPTION_ReportInvalidAnnotation
See Also:
Constant Field Values

OPTION_ReportMissingAnnotation

public static final java.lang.String OPTION_ReportMissingAnnotation
See Also:
Constant Field Values

OPTION_ReportMissingJavadoc

public static final java.lang.String OPTION_ReportMissingJavadoc
See Also:
Constant Field Values

GENERATE

public static final java.lang.String GENERATE
Possible values for configurable options

See Also:
Constant Field Values

DO_NOT_GENERATE

public static final java.lang.String DO_NOT_GENERATE
See Also:
Constant Field Values

PRESERVE

public static final java.lang.String PRESERVE
See Also:
Constant Field Values

OPTIMIZE_OUT

public static final java.lang.String OPTIMIZE_OUT
See Also:
Constant Field Values

VERSION_1_1

public static final java.lang.String VERSION_1_1
See Also:
Constant Field Values

VERSION_1_2

public static final java.lang.String VERSION_1_2
See Also:
Constant Field Values

VERSION_1_3

public static final java.lang.String VERSION_1_3
See Also:
Constant Field Values

VERSION_1_4

public static final java.lang.String VERSION_1_4
See Also:
Constant Field Values

VERSION_JSR14

public static final java.lang.String VERSION_JSR14
See Also:
Constant Field Values

VERSION_CLDC1_1

public static final java.lang.String VERSION_CLDC1_1
See Also:
Constant Field Values

VERSION_1_5

public static final java.lang.String VERSION_1_5
See Also:
Constant Field Values

VERSION_1_6

public static final java.lang.String VERSION_1_6
See Also:
Constant Field Values

VERSION_1_7

public static final java.lang.String VERSION_1_7
See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
See Also:
Constant Field Values

WARNING

public static final java.lang.String WARNING
See Also:
Constant Field Values

IGNORE

public static final java.lang.String IGNORE
See Also:
Constant Field Values

ENABLED

public static final java.lang.String ENABLED
See Also:
Constant Field Values

DISABLED

public static final java.lang.String DISABLED
See Also:
Constant Field Values

PUBLIC

public static final java.lang.String PUBLIC
See Also:
Constant Field Values

PROTECTED

public static final java.lang.String PROTECTED
See Also:
Constant Field Values

DEFAULT

public static final java.lang.String DEFAULT
See Also:
Constant Field Values

PRIVATE

public static final java.lang.String PRIVATE
See Also:
Constant Field Values

RETURN_TAG

public static final java.lang.String RETURN_TAG
See Also:
Constant Field Values

NO_TAG

public static final java.lang.String NO_TAG
See Also:
Constant Field Values

ALL_STANDARD_TAGS

public static final java.lang.String ALL_STANDARD_TAGS
See Also:
Constant Field Values

MethodWithConstructorName

public static final long MethodWithConstructorName
Bit mask for configurable problems (error/warning threshold)

See Also:
Constant Field Values

OverriddenPackageDefaultMethod

public static final long OverriddenPackageDefaultMethod
See Also:
Constant Field Values

UsingDeprecatedAPI

public static final long UsingDeprecatedAPI
See Also:
Constant Field Values

MaskedCatchBlock

public static final long MaskedCatchBlock
See Also:
Constant Field Values

UnusedLocalVariable

public static final long UnusedLocalVariable
See Also:
Constant Field Values

UnusedArgument

public static final long UnusedArgument
See Also:
Constant Field Values

NoImplicitStringConversion

public static final long NoImplicitStringConversion
See Also:
Constant Field Values

AccessEmulation

public static final long AccessEmulation
See Also:
Constant Field Values

NonExternalizedString

public static final long NonExternalizedString
See Also:
Constant Field Values

AssertUsedAsAnIdentifier

public static final long AssertUsedAsAnIdentifier
See Also:
Constant Field Values

UnusedImport

public static final long UnusedImport
See Also:
Constant Field Values

NonStaticAccessToStatic

public static final long NonStaticAccessToStatic
See Also:
Constant Field Values

Task

public static final long Task
See Also:
Constant Field Values

NoEffectAssignment

public static final long NoEffectAssignment
See Also:
Constant Field Values

IncompatibleNonInheritedInterfaceMethod

public static final long IncompatibleNonInheritedInterfaceMethod
See Also:
Constant Field Values

UnusedPrivateMember

public static final long UnusedPrivateMember
See Also:
Constant Field Values

LocalVariableHiding

public static final long LocalVariableHiding
See Also:
Constant Field Values

FieldHiding

public static final long FieldHiding
See Also:
Constant Field Values

AccidentalBooleanAssign

public static final long AccidentalBooleanAssign
See Also:
Constant Field Values

EmptyStatement

public static final long EmptyStatement
See Also:
Constant Field Values

MissingJavadocComments

public static final long MissingJavadocComments
See Also:
Constant Field Values

MissingJavadocTags

public static final long MissingJavadocTags
See Also:
Constant Field Values

UnqualifiedFieldAccess

public static final long UnqualifiedFieldAccess
See Also:
Constant Field Values

UnusedDeclaredThrownException

public static final long UnusedDeclaredThrownException
See Also:
Constant Field Values

FinallyBlockNotCompleting

public static final long FinallyBlockNotCompleting
See Also:
Constant Field Values

InvalidJavadoc

public static final long InvalidJavadoc
See Also:
Constant Field Values

UnnecessaryTypeCheck

public static final long UnnecessaryTypeCheck
See Also:
Constant Field Values

UndocumentedEmptyBlock

public static final long UndocumentedEmptyBlock
See Also:
Constant Field Values

IndirectStaticAccess

public static final long IndirectStaticAccess
See Also:
Constant Field Values

UnnecessaryElse

public static final long UnnecessaryElse
See Also:
Constant Field Values

UncheckedTypeOperation

public static final long UncheckedTypeOperation
See Also:
Constant Field Values

FinalParameterBound

public static final long FinalParameterBound
See Also:
Constant Field Values

MissingSerialVersion

public static final long MissingSerialVersion
See Also:
Constant Field Values

EnumUsedAsAnIdentifier

public static final long EnumUsedAsAnIdentifier
See Also:
Constant Field Values

ForbiddenReference

public static final long ForbiddenReference
See Also:
Constant Field Values

VarargsArgumentNeedCast

public static final long VarargsArgumentNeedCast
See Also:
Constant Field Values

NullReference

public static final long NullReference
See Also:
Constant Field Values

AutoBoxing

public static final long AutoBoxing
See Also:
Constant Field Values

AnnotationSuperInterface

public static final long AnnotationSuperInterface
See Also:
Constant Field Values

TypeHiding

public static final long TypeHiding
See Also:
Constant Field Values

MissingOverrideAnnotation

public static final long MissingOverrideAnnotation
See Also:
Constant Field Values

IncompleteEnumSwitch

public static final long IncompleteEnumSwitch
See Also:
Constant Field Values

MissingDeprecatedAnnotation

public static final long MissingDeprecatedAnnotation
See Also:
Constant Field Values

DiscouragedReference

public static final long DiscouragedReference
See Also:
Constant Field Values

UnhandledWarningToken

public static final long UnhandledWarningToken
See Also:
Constant Field Values

RawTypeReference

public static final long RawTypeReference
See Also:
Constant Field Values

UnusedLabel

public static final long UnusedLabel
See Also:
Constant Field Values

ParameterAssignment

public static final long ParameterAssignment
See Also:
Constant Field Values

FallthroughCase

public static final long FallthroughCase
See Also:
Constant Field Values

OverridingMethodWithoutSuperInvocation

public static final long OverridingMethodWithoutSuperInvocation
See Also:
Constant Field Values

PotentialNullReference

public static final long PotentialNullReference
See Also:
Constant Field Values

RedundantNullCheck

public static final long RedundantNullCheck
See Also:
Constant Field Values

MissingJavadocTagDescription

public static final long MissingJavadocTagDescription
See Also:
Constant Field Values

UnusedTypeArguments

public static final long UnusedTypeArguments
See Also:
Constant Field Values

UnusedWarningToken

public static final long UnusedWarningToken
See Also:
Constant Field Values

RedundantSuperinterface

public static final long RedundantSuperinterface
See Also:
Constant Field Values

errorThreshold

public long errorThreshold

warningThreshold

public long warningThreshold

produceDebugAttributes

public int produceDebugAttributes

complianceLevel

public long complianceLevel

sourceLevel

public long sourceLevel

targetJDK

public long targetJDK

defaultEncoding

public java.lang.String defaultEncoding

verbose

public boolean verbose

produceReferenceInfo

public boolean produceReferenceInfo

preserveAllLocalVariables

public boolean preserveAllLocalVariables

parseLiteralExpressionsAsConstants

public boolean parseLiteralExpressionsAsConstants

maxProblemsPerUnit

public int maxProblemsPerUnit

taskTags

public char[][] taskTags

taskPriorites

public char[][] taskPriorites

isTaskCaseSensitive

public boolean isTaskCaseSensitive

reportDeprecationInsideDeprecatedCode

public boolean reportDeprecationInsideDeprecatedCode

reportDeprecationWhenOverridingDeprecatedMethod

public boolean reportDeprecationWhenOverridingDeprecatedMethod

reportUnusedParameterWhenImplementingAbstract

public boolean reportUnusedParameterWhenImplementingAbstract

reportUnusedParameterWhenOverridingConcrete

public boolean reportUnusedParameterWhenOverridingConcrete

reportUnusedParameterIncludeDocCommentReference

public boolean reportUnusedParameterIncludeDocCommentReference

reportUnusedDeclaredThrownExceptionWhenOverriding

public boolean reportUnusedDeclaredThrownExceptionWhenOverriding

reportUnusedDeclaredThrownExceptionIncludeDocCommentReference

public boolean reportUnusedDeclaredThrownExceptionIncludeDocCommentReference

reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable

public boolean reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable

reportSpecialParameterHidingField

public boolean reportSpecialParameterHidingField

reportInvalidJavadocTagsVisibility

public int reportInvalidJavadocTagsVisibility

reportInvalidJavadocTags

public boolean reportInvalidJavadocTags

reportInvalidJavadocTagsDeprecatedRef

public boolean reportInvalidJavadocTagsDeprecatedRef

reportInvalidJavadocTagsNotVisibleRef

public boolean reportInvalidJavadocTagsNotVisibleRef

reportMissingJavadocTagDescription

public java.lang.String reportMissingJavadocTagDescription

reportMissingJavadocTagsVisibility

public int reportMissingJavadocTagsVisibility

reportMissingJavadocTagsOverriding

public boolean reportMissingJavadocTagsOverriding

reportMissingJavadocCommentsVisibility

public int reportMissingJavadocCommentsVisibility

reportMissingJavadocCommentsOverriding

public boolean reportMissingJavadocCommentsOverriding

inlineJsrBytecode

public boolean inlineJsrBytecode

docCommentSupport

public boolean docCommentSupport

suppressWarnings

public boolean suppressWarnings

treatOptionalErrorAsFatal

public boolean treatOptionalErrorAsFatal

performMethodsFullRecovery

public boolean performMethodsFullRecovery

performStatementsRecovery

public boolean performStatementsRecovery

storeAnnotations

public boolean storeAnnotations

subOptions

public CompilerOptions subOptions

jmlDefaultIsNonNull

public boolean jmlDefaultIsNonNull

jmlRacEnabled

public boolean jmlRacEnabled

jmlNullityCountsEnabled

public boolean jmlNullityCountsEnabled

jmlEnabled

public boolean jmlEnabled

jmlDbcEnabled

public boolean jmlDbcEnabled

jmlSpecPath

public java.lang.String jmlSpecPath

jmlNewLoopSemanticsEnabled

public boolean jmlNewLoopSemanticsEnabled

jmlEsc2Enabled

public boolean jmlEsc2Enabled

jmlEsc2EchoOutputEnabled

public boolean jmlEsc2EchoOutputEnabled

jmlEsc2CommandLineArgs

public java.lang.String jmlEsc2CommandLineArgs

jmlSimplifyPath

public java.lang.String jmlSimplifyPath

jmlEscEnabled

public boolean jmlEscEnabled

jmlEscGovernsRac

public boolean jmlEscGovernsRac

jmlEscProverStrategy

public java.lang.String jmlEscProverStrategy

jmlFspvEnabled

public boolean jmlFspvEnabled

jml2CheckerEnabled

public boolean jml2CheckerEnabled

jml2CompilerEnabled

public boolean jml2CompilerEnabled

generateClassFiles

public boolean generateClassFiles

processAnnotations

public boolean processAnnotations

warningTokens

public static final java.lang.String[] warningTokens
Constructor Detail

CompilerOptions

public CompilerOptions()
Initializing the compiler options with defaults


CompilerOptions

public CompilerOptions(java.util.Map settings)
Initializing the compiler options with external settings

Parameters:
settings -

CompilerOptions

public CompilerOptions(java.util.Map settings,
                       boolean parseLiteralExpressionsAsConstants)
Deprecated. used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors

Method Detail

useNonNullTypeSystem

public boolean useNonNullTypeSystem()

getMap

public java.util.Map getMap()

optionKeyFromIrritant

public static java.lang.String optionKeyFromIrritant(long 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)


optionKeyToIrritant

public static long optionKeyToIrritant(java.lang.String optionName)

getSeverity

public int getSeverity(long irritant)

getSeverityString

public java.lang.String getSeverityString(long irritant)

getVisibilityString

public java.lang.String getVisibilityString(int level)

set

public void set(java.util.Map optionsMap)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

updateSeverity

public void updateSeverity(long irritant,
                           java.lang.Object severityString)

versionToJdkLevel

public static long versionToJdkLevel(java.lang.Object versionID)

versionFromJdkLevel

public static java.lang.String versionFromJdkLevel(long jdkLevel)

warningOptionNames

public static java.lang.String[] warningOptionNames()
Return all warning option names for use as keys in compiler options maps.

Returns:
all warning option names TODO (maxime) revise for ensuring completeness

warningTokenFromIrritant

public static java.lang.String warningTokenFromIrritant(long irritant)
For suppressable warnings


warningTokenToIrritants

public static long warningTokenToIrritants(java.lang.String warningToken)