public class CompilerProblemSettings extends Object implements ICompilerProblemSettings
Constructor and Description |
---|
CompilerProblemSettings(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkActionScriptWarning(int warningCode)
Returns whether checking of a type ActionScript warning is enabled.
|
Collection<Class<ICompilerProblem>> |
getErrorProblems()
A collection of problem classes that should be report as errors.
|
Collection<Class<ICompilerProblem>> |
getIgnoreProblems()
A collection of problem classes that should not be reported.
|
Collection<Class<ICompilerProblem>> |
getWarningProblems()
A collection of problem classes that should be report as warnings.
|
boolean |
isSourcePathOverlapAllowed()
Returns whether some source path directories are allowed to be
subdirectories of another.
|
boolean |
isStrict()
Returns true if the compiler should run in strict error checking mode.
|
boolean |
showActionScriptWarnings()
Returns whether ActionScript warnings are enabled.
|
boolean |
showBindingWarnings()
Returns whether binding warnings are enabled.
|
boolean |
showDeprecationWarnings()
Returns whether deprecation warnings are enabled.
|
boolean |
showMultipleDefinitionWarnings()
Returns whether multiple definition warnings are enabled.
|
boolean |
showUnusedTypeSelectorWarnings()
Returns whether unused type selector warnings are enabled.
|
boolean |
showWarnings()
Determines if any warnings are shown.
|
public CompilerProblemSettings(Configuration configuration)
public boolean isSourcePathOverlapAllowed()
ICompilerProblemSettings
isSourcePathOverlapAllowed
in interface ICompilerProblemSettings
public boolean showActionScriptWarnings()
ICompilerProblemSettings
showActionScriptWarnings
in interface ICompilerProblemSettings
public boolean showDeprecationWarnings()
ICompilerProblemSettings
showDeprecationWarnings
in interface ICompilerProblemSettings
public boolean isStrict()
ICompilerProblemSettings
isStrict
in interface ICompilerProblemSettings
public Collection<Class<ICompilerProblem>> getErrorProblems()
ICompilerProblemSettings
getErrorProblems
in interface ICompilerProblemSettings
public Collection<Class<ICompilerProblem>> getWarningProblems()
ICompilerProblemSettings
getWarningProblems
in interface ICompilerProblemSettings
public Collection<Class<ICompilerProblem>> getIgnoreProblems()
ICompilerProblemSettings
getIgnoreProblems
in interface ICompilerProblemSettings
public boolean showBindingWarnings()
ICompilerProblemSettings
showBindingWarnings
in interface ICompilerProblemSettings
public boolean showUnusedTypeSelectorWarnings()
ICompilerProblemSettings
showUnusedTypeSelectorWarnings
in interface ICompilerProblemSettings
public boolean showMultipleDefinitionWarnings()
ICompilerProblemSettings
showMultipleDefinitionWarnings
in interface ICompilerProblemSettings
public boolean checkActionScriptWarning(int warningCode)
ICompilerProblemSettings
--compiler.warn-array-tostring-changes --compiler.warn-assignment-within-conditional --compiler.warn-bad-array-cast --compiler.warn-bad-bool-assignment --compiler.warn-bad-date-cast --compiler.warn-bad-es3-type-method --compiler.warn-bad-es3-type-prop --compiler.warn-bad-nan-comparison --compiler.warn-bad-null-assignment --compiler.warn-bad-null-comparison --compiler.warn-bad-undefined-comparison --compiler.warn-boolean-constructor-with-no-args --compiler.warn-changes-in-resolve --compiler.warn-class-is-sealed --compiler.warn-const-not-initialized --compiler.warn-constructor-returns-value --compiler.warn-deprecated-event-handler-error --compiler.warn-deprecated-function-error --compiler.warn-deprecated-property-error --compiler.warn-duplicate-argument-names --compiler.warn-duplicate-variable-def --compiler.warn-for-var-in-changes --compiler.warn-import-hides-class --compiler.warn-instance-of-changes --compiler.warn-internal-error --compiler.warn-level-not-supported --compiler.warn-missing-namespace-decl --compiler.warn-negative-uint-literal --compiler.warn-no-constructor --compiler.warn-no-explicit-super-call-in-constructor --compiler.warn-no-type-decl --compiler.warn-number-from-string-changes --compiler.warn-scoping-change-in-this --compiler.warn-slow-text-field-addition --compiler.warn-unlikely-function-value --compiler.warn-xml-class-has-changed
checkActionScriptWarning
in interface ICompilerProblemSettings
warningCode
- warning code, one of:
public boolean showWarnings()
ICompilerProblemSettings
showWarnings
in interface ICompilerProblemSettings
Copyright © 2016 The Apache Software Foundation. All rights reserved.