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

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.impl.CompilerOptions

public class CompilerOptions
extends Object


字段摘要
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. if (DEBUG) ...)
 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
           
 
构造方法摘要
CompilerOptions()
          Initializing the compiler options with defaults
CompilerOptions(Map settings)
          Initializing the compiler options with external settings
CompilerOptions(Map settings, boolean parseLiteralExpressionsAsConstants)
          已过时。 used to preserve 3.1 and 3.2M4 compatibility of some Compiler constructors
 
方法摘要
 Map getMap()
           
 int getSeverity(int irritant)
           
 String getSeverityString(int irritant)
           
 String getVisibilityString(int level)
           
 boolean isAnyEnabled(IrritantSet irritants)
           
static String optionKeyFromIrritant(int irritant)
          Return the most specific option key controlling this irritant.
protected  void resetDefaults()
           
 void set(Map optionsMap)
           
 String toString()
           
protected  void updateSeverity(int irritant, Object severityString)
           
static String versionFromJdkLevel(long jdkLevel)
           
static long versionToJdkLevel(Object versionID)
           
static String[] warningOptionNames()
          Return all warning option names for use as keys in compiler options maps.
static String warningTokenFromIrritant(int irritant)
          For suppressable warnings
static IrritantSet warningTokenToIrritants(String warningToken)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

OPTION_LocalVariableAttribute

public static final String OPTION_LocalVariableAttribute
Option IDs

另请参见:
常量字段值

OPTION_LineNumberAttribute

public static final String OPTION_LineNumberAttribute
另请参见:
常量字段值

OPTION_SourceFileAttribute

public static final String OPTION_SourceFileAttribute
另请参见:
常量字段值

OPTION_PreserveUnusedLocal

public static final String OPTION_PreserveUnusedLocal
另请参见:
常量字段值

OPTION_DocCommentSupport

public static final String OPTION_DocCommentSupport
另请参见:
常量字段值

OPTION_ReportMethodWithConstructorName

public static final String OPTION_ReportMethodWithConstructorName
另请参见:
常量字段值

OPTION_ReportOverridingPackageDefaultMethod

public static final String OPTION_ReportOverridingPackageDefaultMethod
另请参见:
常量字段值

OPTION_ReportDeprecation

public static final String OPTION_ReportDeprecation
另请参见:
常量字段值

OPTION_ReportDeprecationInDeprecatedCode

public static final String OPTION_ReportDeprecationInDeprecatedCode
另请参见:
常量字段值

OPTION_ReportDeprecationWhenOverridingDeprecatedMethod

public static final String OPTION_ReportDeprecationWhenOverridingDeprecatedMethod
另请参见:
常量字段值

OPTION_ReportHiddenCatchBlock

public static final String OPTION_ReportHiddenCatchBlock
另请参见:
常量字段值

OPTION_ReportUnusedLocal

public static final String OPTION_ReportUnusedLocal
另请参见:
常量字段值

OPTION_ReportUnusedParameter

public static final String OPTION_ReportUnusedParameter
另请参见:
常量字段值

OPTION_ReportUnusedParameterWhenImplementingAbstract

public static final String OPTION_ReportUnusedParameterWhenImplementingAbstract
另请参见:
常量字段值

OPTION_ReportUnusedParameterWhenOverridingConcrete

public static final String OPTION_ReportUnusedParameterWhenOverridingConcrete
另请参见:
常量字段值

OPTION_ReportUnusedParameterIncludeDocCommentReference

public static final String OPTION_ReportUnusedParameterIncludeDocCommentReference
另请参见:
常量字段值

OPTION_ReportUnusedImport

public static final String OPTION_ReportUnusedImport
另请参见:
常量字段值

OPTION_ReportSyntheticAccessEmulation

public static final String OPTION_ReportSyntheticAccessEmulation
另请参见:
常量字段值

OPTION_ReportNoEffectAssignment

public static final String OPTION_ReportNoEffectAssignment
另请参见:
常量字段值

OPTION_ReportLocalVariableHiding

public static final String OPTION_ReportLocalVariableHiding
另请参见:
常量字段值

OPTION_ReportSpecialParameterHidingField

public static final String OPTION_ReportSpecialParameterHidingField
另请参见:
常量字段值

OPTION_ReportFieldHiding

public static final String OPTION_ReportFieldHiding
另请参见:
常量字段值

OPTION_ReportTypeParameterHiding

public static final String OPTION_ReportTypeParameterHiding
另请参见:
常量字段值

OPTION_ReportPossibleAccidentalBooleanAssignment

public static final String OPTION_ReportPossibleAccidentalBooleanAssignment
另请参见:
常量字段值

OPTION_ReportNonExternalizedStringLiteral

public static final String OPTION_ReportNonExternalizedStringLiteral
另请参见:
常量字段值

OPTION_ReportIncompatibleNonInheritedInterfaceMethod

public static final String OPTION_ReportIncompatibleNonInheritedInterfaceMethod
另请参见:
常量字段值

OPTION_ReportUnusedPrivateMember

public static final String OPTION_ReportUnusedPrivateMember
另请参见:
常量字段值

OPTION_ReportNoImplicitStringConversion

public static final String OPTION_ReportNoImplicitStringConversion
另请参见:
常量字段值

OPTION_ReportAssertIdentifier

public static final String OPTION_ReportAssertIdentifier
另请参见:
常量字段值

OPTION_ReportEnumIdentifier

public static final String OPTION_ReportEnumIdentifier
另请参见:
常量字段值

OPTION_ReportNonStaticAccessToStatic

public static final String OPTION_ReportNonStaticAccessToStatic
另请参见:
常量字段值

OPTION_ReportIndirectStaticAccess

public static final String OPTION_ReportIndirectStaticAccess
另请参见:
常量字段值

OPTION_ReportEmptyStatement

public static final String OPTION_ReportEmptyStatement
另请参见:
常量字段值

OPTION_ReportUnnecessaryTypeCheck

public static final String OPTION_ReportUnnecessaryTypeCheck
另请参见:
常量字段值

OPTION_ReportUnnecessaryElse

public static final String OPTION_ReportUnnecessaryElse
另请参见:
常量字段值

OPTION_ReportUndocumentedEmptyBlock

public static final String OPTION_ReportUndocumentedEmptyBlock
另请参见:
常量字段值

OPTION_ReportInvalidJavadoc

public static final String OPTION_ReportInvalidJavadoc
另请参见:
常量字段值

OPTION_ReportInvalidJavadocTags

public static final String OPTION_ReportInvalidJavadocTags
另请参见:
常量字段值

OPTION_ReportInvalidJavadocTagsDeprecatedRef

public static final String OPTION_ReportInvalidJavadocTagsDeprecatedRef
另请参见:
常量字段值

OPTION_ReportInvalidJavadocTagsNotVisibleRef

public static final String OPTION_ReportInvalidJavadocTagsNotVisibleRef
另请参见:
常量字段值

OPTION_ReportInvalidJavadocTagsVisibility

public static final String OPTION_ReportInvalidJavadocTagsVisibility
另请参见:
常量字段值

OPTION_ReportMissingJavadocTags

public static final String OPTION_ReportMissingJavadocTags
另请参见:
常量字段值

OPTION_ReportMissingJavadocTagsVisibility

public static final String OPTION_ReportMissingJavadocTagsVisibility
另请参见:
常量字段值

OPTION_ReportMissingJavadocTagsOverriding

public static final String OPTION_ReportMissingJavadocTagsOverriding
另请参见:
常量字段值

OPTION_ReportMissingJavadocTagsMethodTypeParameters

public static final String OPTION_ReportMissingJavadocTagsMethodTypeParameters
另请参见:
常量字段值

OPTION_ReportMissingJavadocComments

public static final String OPTION_ReportMissingJavadocComments
另请参见:
常量字段值

OPTION_ReportMissingJavadocTagDescription

public static final String OPTION_ReportMissingJavadocTagDescription
另请参见:
常量字段值

OPTION_ReportMissingJavadocCommentsVisibility

public static final String OPTION_ReportMissingJavadocCommentsVisibility
另请参见:
常量字段值

OPTION_ReportMissingJavadocCommentsOverriding

public static final String OPTION_ReportMissingJavadocCommentsOverriding
另请参见:
常量字段值

OPTION_ReportFinallyBlockNotCompletingNormally

public static final String OPTION_ReportFinallyBlockNotCompletingNormally
另请参见:
常量字段值

OPTION_ReportUnusedDeclaredThrownException

public static final String OPTION_ReportUnusedDeclaredThrownException
另请参见:
常量字段值

OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding

public static final String OPTION_ReportUnusedDeclaredThrownExceptionWhenOverriding
另请参见:
常量字段值

OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference

public static final String OPTION_ReportUnusedDeclaredThrownExceptionIncludeDocCommentReference
另请参见:
常量字段值

OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable

public static final String OPTION_ReportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable
另请参见:
常量字段值

OPTION_ReportUnqualifiedFieldAccess

public static final String OPTION_ReportUnqualifiedFieldAccess
另请参见:
常量字段值

OPTION_ReportUnavoidableGenericTypeProblems

public static final String OPTION_ReportUnavoidableGenericTypeProblems
另请参见:
常量字段值

OPTION_ReportUncheckedTypeOperation

public static final String OPTION_ReportUncheckedTypeOperation
另请参见:
常量字段值

OPTION_ReportRawTypeReference

public static final String OPTION_ReportRawTypeReference
另请参见:
常量字段值

OPTION_ReportFinalParameterBound

public static final String OPTION_ReportFinalParameterBound
另请参见:
常量字段值

OPTION_ReportMissingSerialVersion

public static final String OPTION_ReportMissingSerialVersion
另请参见:
常量字段值

OPTION_ReportVarargsArgumentNeedCast

public static final String OPTION_ReportVarargsArgumentNeedCast
另请参见:
常量字段值

OPTION_ReportUnusedTypeArgumentsForMethodInvocation

public static final String OPTION_ReportUnusedTypeArgumentsForMethodInvocation
另请参见:
常量字段值

OPTION_Source

public static final String OPTION_Source
另请参见:
常量字段值

OPTION_TargetPlatform

public static final String OPTION_TargetPlatform
另请参见:
常量字段值

OPTION_Compliance

public static final String OPTION_Compliance
另请参见:
常量字段值

OPTION_Encoding

public static final String OPTION_Encoding
另请参见:
常量字段值

OPTION_MaxProblemPerUnit

public static final String OPTION_MaxProblemPerUnit
另请参见:
常量字段值

OPTION_TaskTags

public static final String OPTION_TaskTags
另请参见:
常量字段值

OPTION_TaskPriorities

public static final String OPTION_TaskPriorities
另请参见:
常量字段值

OPTION_TaskCaseSensitive

public static final String OPTION_TaskCaseSensitive
另请参见:
常量字段值

OPTION_InlineJsr

public static final String OPTION_InlineJsr
另请参见:
常量字段值

OPTION_ReportNullReference

public static final String OPTION_ReportNullReference
另请参见:
常量字段值

OPTION_ReportPotentialNullReference

public static final String OPTION_ReportPotentialNullReference
另请参见:
常量字段值

OPTION_ReportRedundantNullCheck

public static final String OPTION_ReportRedundantNullCheck
另请参见:
常量字段值

OPTION_ReportAutoboxing

public static final String OPTION_ReportAutoboxing
另请参见:
常量字段值

OPTION_ReportAnnotationSuperInterface

public static final String OPTION_ReportAnnotationSuperInterface
另请参见:
常量字段值

OPTION_ReportMissingOverrideAnnotation

public static final String OPTION_ReportMissingOverrideAnnotation
另请参见:
常量字段值

OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation

public static final String OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation
另请参见:
常量字段值

OPTION_ReportMissingDeprecatedAnnotation

public static final String OPTION_ReportMissingDeprecatedAnnotation
另请参见:
常量字段值

OPTION_ReportIncompleteEnumSwitch

public static final String OPTION_ReportIncompleteEnumSwitch
另请参见:
常量字段值

OPTION_ReportForbiddenReference

public static final String OPTION_ReportForbiddenReference
另请参见:
常量字段值

OPTION_ReportDiscouragedReference

public static final String OPTION_ReportDiscouragedReference
另请参见:
常量字段值

OPTION_SuppressWarnings

public static final String OPTION_SuppressWarnings
另请参见:
常量字段值

OPTION_SuppressOptionalErrors

public static final String OPTION_SuppressOptionalErrors
另请参见:
常量字段值

OPTION_ReportUnhandledWarningToken

public static final String OPTION_ReportUnhandledWarningToken
另请参见:
常量字段值

OPTION_ReportUnusedWarningToken

public static final String OPTION_ReportUnusedWarningToken
另请参见:
常量字段值

OPTION_ReportUnusedLabel

public static final String OPTION_ReportUnusedLabel
另请参见:
常量字段值

OPTION_FatalOptionalError

public static final String OPTION_FatalOptionalError
另请参见:
常量字段值

OPTION_ReportParameterAssignment

public static final String OPTION_ReportParameterAssignment
另请参见:
常量字段值

OPTION_ReportFallthroughCase

public static final String OPTION_ReportFallthroughCase
另请参见:
常量字段值

OPTION_ReportOverridingMethodWithoutSuperInvocation

public static final String OPTION_ReportOverridingMethodWithoutSuperInvocation
另请参见:
常量字段值

OPTION_GenerateClassFiles

public static final String OPTION_GenerateClassFiles
另请参见:
常量字段值

OPTION_Process_Annotations

public static final String OPTION_Process_Annotations
另请参见:
常量字段值

OPTION_ReportRedundantSuperinterface

public static final String OPTION_ReportRedundantSuperinterface
另请参见:
常量字段值

OPTION_ReportComparingIdentical

public static final String OPTION_ReportComparingIdentical
另请参见:
常量字段值

OPTION_ReportMissingSynchronizedOnInheritedMethod

public static final String OPTION_ReportMissingSynchronizedOnInheritedMethod
另请参见:
常量字段值

OPTION_ReportMissingHashCodeMethod

public static final String OPTION_ReportMissingHashCodeMethod
另请参见:
常量字段值

OPTION_ReportDeadCode

public static final String OPTION_ReportDeadCode
另请参见:
常量字段值

OPTION_ReportDeadCodeInTrivialIfStatement

public static final String OPTION_ReportDeadCodeInTrivialIfStatement
另请参见:
常量字段值

OPTION_ReportTasks

public static final String OPTION_ReportTasks
另请参见:
常量字段值

OPTION_ReportUnusedObjectAllocation

public static final String OPTION_ReportUnusedObjectAllocation
另请参见:
常量字段值

OPTION_IncludeNullInfoFromAsserts

public static final String OPTION_IncludeNullInfoFromAsserts
另请参见:
常量字段值

OPTION_ReportMethodCanBeStatic

public static final String OPTION_ReportMethodCanBeStatic
另请参见:
常量字段值

OPTION_ReportMethodCanBePotentiallyStatic

public static final String OPTION_ReportMethodCanBePotentiallyStatic
另请参见:
常量字段值

OPTION_ReportRedundantSpecificationOfTypeArguments

public static final String OPTION_ReportRedundantSpecificationOfTypeArguments
另请参见:
常量字段值

GENERATE

public static final String GENERATE
Possible values for configurable options

另请参见:
常量字段值

DO_NOT_GENERATE

public static final String DO_NOT_GENERATE
另请参见:
常量字段值

PRESERVE

public static final String PRESERVE
另请参见:
常量字段值

OPTIMIZE_OUT

public static final String OPTIMIZE_OUT
另请参见:
常量字段值

VERSION_1_1

public static final String VERSION_1_1
另请参见:
常量字段值

VERSION_1_2

public static final String VERSION_1_2
另请参见:
常量字段值

VERSION_1_3

public static final String VERSION_1_3
另请参见:
常量字段值

VERSION_1_4

public static final String VERSION_1_4
另请参见:
常量字段值

VERSION_JSR14

public static final String VERSION_JSR14
另请参见:
常量字段值

VERSION_CLDC1_1

public static final String VERSION_CLDC1_1
另请参见:
常量字段值

VERSION_1_5

public static final String VERSION_1_5
另请参见:
常量字段值

VERSION_1_6

public static final String VERSION_1_6
另请参见:
常量字段值

VERSION_1_7

public static final String VERSION_1_7
另请参见:
常量字段值

ERROR

public static final String ERROR
另请参见:
常量字段值

WARNING

public static final String WARNING
另请参见:
常量字段值

IGNORE

public static final String IGNORE
另请参见:
常量字段值

ENABLED

public static final String ENABLED
另请参见:
常量字段值

DISABLED

public static final String DISABLED
另请参见:
常量字段值

PUBLIC

public static final String PUBLIC
另请参见:
常量字段值

PROTECTED

public static final String PROTECTED
另请参见:
常量字段值

DEFAULT

public static final String DEFAULT
另请参见:
常量字段值

PRIVATE

public static final String PRIVATE
另请参见:
常量字段值

RETURN_TAG

public static final String RETURN_TAG
另请参见:
常量字段值

NO_TAG

public static final String NO_TAG
另请参见:
常量字段值

ALL_STANDARD_TAGS

public static final String ALL_STANDARD_TAGS
另请参见:
常量字段值

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

另请参见:
常量字段值

OverriddenPackageDefaultMethod

public static final int OverriddenPackageDefaultMethod
另请参见:
常量字段值

UsingDeprecatedAPI

public static final int UsingDeprecatedAPI
另请参见:
常量字段值

MaskedCatchBlock

public static final int MaskedCatchBlock
另请参见:
常量字段值

UnusedLocalVariable

public static final int UnusedLocalVariable
另请参见:
常量字段值

UnusedArgument

public static final int UnusedArgument
另请参见:
常量字段值

NoImplicitStringConversion

public static final int NoImplicitStringConversion
另请参见:
常量字段值

AccessEmulation

public static final int AccessEmulation
另请参见:
常量字段值

NonExternalizedString

public static final int NonExternalizedString
另请参见:
常量字段值

AssertUsedAsAnIdentifier

public static final int AssertUsedAsAnIdentifier
另请参见:
常量字段值

UnusedImport

public static final int UnusedImport
另请参见:
常量字段值

NonStaticAccessToStatic

public static final int NonStaticAccessToStatic
另请参见:
常量字段值

Task

public static final int Task
另请参见:
常量字段值

NoEffectAssignment

public static final int NoEffectAssignment
另请参见:
常量字段值

IncompatibleNonInheritedInterfaceMethod

public static final int IncompatibleNonInheritedInterfaceMethod
另请参见:
常量字段值

UnusedPrivateMember

public static final int UnusedPrivateMember
另请参见:
常量字段值

LocalVariableHiding

public static final int LocalVariableHiding
另请参见:
常量字段值

FieldHiding

public static final int FieldHiding
另请参见:
常量字段值

AccidentalBooleanAssign

public static final int AccidentalBooleanAssign
另请参见:
常量字段值

EmptyStatement

public static final int EmptyStatement
另请参见:
常量字段值

MissingJavadocComments

public static final int MissingJavadocComments
另请参见:
常量字段值

MissingJavadocTags

public static final int MissingJavadocTags
另请参见:
常量字段值

UnqualifiedFieldAccess

public static final int UnqualifiedFieldAccess
另请参见:
常量字段值

UnusedDeclaredThrownException

public static final int UnusedDeclaredThrownException
另请参见:
常量字段值

FinallyBlockNotCompleting

public static final int FinallyBlockNotCompleting
另请参见:
常量字段值

InvalidJavadoc

public static final int InvalidJavadoc
另请参见:
常量字段值

UnnecessaryTypeCheck

public static final int UnnecessaryTypeCheck
另请参见:
常量字段值

UndocumentedEmptyBlock

public static final int UndocumentedEmptyBlock
另请参见:
常量字段值

IndirectStaticAccess

public static final int IndirectStaticAccess
另请参见:
常量字段值

UnnecessaryElse

public static final int UnnecessaryElse
另请参见:
常量字段值

UncheckedTypeOperation

public static final int UncheckedTypeOperation
另请参见:
常量字段值

FinalParameterBound

public static final int FinalParameterBound
另请参见:
常量字段值

MissingSerialVersion

public static final int MissingSerialVersion
另请参见:
常量字段值

EnumUsedAsAnIdentifier

public static final int EnumUsedAsAnIdentifier
另请参见:
常量字段值

ForbiddenReference

public static final int ForbiddenReference
另请参见:
常量字段值

VarargsArgumentNeedCast

public static final int VarargsArgumentNeedCast
另请参见:
常量字段值

NullReference

public static final int NullReference
另请参见:
常量字段值

AutoBoxing

public static final int AutoBoxing
另请参见:
常量字段值

AnnotationSuperInterface

public static final int AnnotationSuperInterface
另请参见:
常量字段值

TypeHiding

public static final int TypeHiding
另请参见:
常量字段值

MissingOverrideAnnotation

public static final int MissingOverrideAnnotation
另请参见:
常量字段值

IncompleteEnumSwitch

public static final int IncompleteEnumSwitch
另请参见:
常量字段值

MissingDeprecatedAnnotation

public static final int MissingDeprecatedAnnotation
另请参见:
常量字段值

DiscouragedReference

public static final int DiscouragedReference
另请参见:
常量字段值

UnhandledWarningToken

public static final int UnhandledWarningToken
另请参见:
常量字段值

RawTypeReference

public static final int RawTypeReference
另请参见:
常量字段值

UnusedLabel

public static final int UnusedLabel
另请参见:
常量字段值

ParameterAssignment

public static final int ParameterAssignment
另请参见:
常量字段值

FallthroughCase

public static final int FallthroughCase
另请参见:
常量字段值

OverridingMethodWithoutSuperInvocation

public static final int OverridingMethodWithoutSuperInvocation
另请参见:
常量字段值

PotentialNullReference

public static final int PotentialNullReference
另请参见:
常量字段值

RedundantNullCheck

public static final int RedundantNullCheck
另请参见:
常量字段值

MissingJavadocTagDescription

public static final int MissingJavadocTagDescription
另请参见:
常量字段值

UnusedTypeArguments

public static final int UnusedTypeArguments
另请参见:
常量字段值

UnusedWarningToken

public static final int UnusedWarningToken
另请参见:
常量字段值

RedundantSuperinterface

public static final int RedundantSuperinterface
另请参见:
常量字段值

ComparingIdentical

public static final int ComparingIdentical
另请参见:
常量字段值

MissingSynchronizedModifierInInheritedMethod

public static final int MissingSynchronizedModifierInInheritedMethod
另请参见:
常量字段值

ShouldImplementHashcode

public static final int ShouldImplementHashcode
另请参见:
常量字段值

DeadCode

public static final int DeadCode
另请参见:
常量字段值

Tasks

public static final int Tasks
另请参见:
常量字段值

UnusedObjectAllocation

public static final int UnusedObjectAllocation
另请参见:
常量字段值

MethodCanBeStatic

public static final int MethodCanBeStatic
另请参见:
常量字段值

MethodCanBePotentiallyStatic

public static final int MethodCanBePotentiallyStatic
另请参见:
常量字段值

RedundantSpecificationOfTypeArguments

public static final int RedundantSpecificationOfTypeArguments
另请参见:
常量字段值

errorThreshold

protected IrritantSet errorThreshold
Defaults defined at IrritantSet.COMPILER_DEFAULT_ERRORS

另请参见:
resetDefaults()

warningThreshold

protected IrritantSet warningThreshold
Defaults defined at IrritantSet.COMPILER_DEFAULT_WARNINGS

另请参见:
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

参数:
settings -

CompilerOptions

public CompilerOptions(Map settings,
                       boolean parseLiteralExpressionsAsConstants)
已过时。 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.

返回:
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()
覆盖:
Object 中的 toString

updateSeverity

protected void updateSeverity(int irritant,
                              Object severityString)


Copyright © 2013. All Rights Reserved.