enum CompilationParam extends java.lang.Enum<CompilationParam>
Enum Constant and Description |
---|
ALIAS_ALL_STRINGS
Aliases all string literals to global instances, to avoid creating more
objects than necessary (if true, overrides any set of strings passed in
to aliasableStrings)
|
ALLOW_LOCAL_EXPORTS |
AMBIGUATE_PROPERTIES |
ANGULAR_PASS
Process @ngInject directive
|
CHECK_CONSTANTS
Checks visibility.
|
CHECK_DEPRECATED
Checks deprecation.
|
CHECK_ES5_STRICT
Checks es5strict.
|
CHECK_GLOBAL_NAMES
Checks the integrity of references to qualified global names.
|
CHECK_GLOBAL_THIS
Checks for certain uses of the
this keyword that are considered
unsafe because they are likely to reference the global this
object unintentionally. |
CHECK_LINT |
CHECK_MISSING_RETURN
Checks missing return
|
CHECK_PROVIDES
Checks for missing goog.provides() calls
|
CHECK_REPORT_MISSING_OVERRIDE
Flags a warning if a property is missing the @override annotation, but it
overrides a base class property.
|
CHECK_REQUIRES
Checks for missing goog.require() calls
|
CHECK_SUSPICIOUS_CODE
Checks for suspicious statements that have no effect
|
CHECK_SYMBOLS
Checks that all symbols are defined
|
CHECK_TYPES
Checks types on expressions
|
CHECK_TYPES_NEW_INFERENCE
Checks types on expressions
|
CHECK_UNREACHABLE_CODE
Checks for unreachable code
|
CHECK_VISIBILITY
Checks visibility.
|
CLOSURE_PASS
Processes goog.provide() and goog.require() calls
|
COALESCE_VARIABLE_NAMES
Merge two variables together as one.
|
COLLAPSE_ANONYMOUS_FUNCTIONS
Collapses anonymous function expressions into named function
declarations
|
COLLAPSE_PROPERTIES
Flattens multi-level property names (e.g.
|
COLLAPSE_VARIABLE_DECLARATIONS
Collapses multiple variable declarations into one
|
COMPUTE_FUNCTION_SIDE_EFFECTS |
COVERT_TO_DOTTED_PROPERTIES
Converts quoted property accesses to dot syntax (a['b'] -> a.b)
|
CROSS_MODULE_CODE_MOTION |
CROSS_MODULE_METHOD_MOTION |
DEAD_ASSIGNMENT_ELIMINATION |
DEVIRTUALIZE_PROTOTYPE_METHODS |
DISAMBIGUATE_PROPERTIES |
ENABLE_ALL_DIAGNOSTIC_GROUPS |
EXTRACT_PROTOTYPE_MEMBER_DECLARATIONS
Extracts common prototype member declarations
|
FLOW_SENSITIVE_INLINE_VARIABLES
Flowsenstive Inlines variables
|
FOLD_CONSTANTS
Folds constants (e.g.
|
GENERATE_EXPORTS |
GENERATE_PSEUDO_NAMES
Generate pseudo names for properties (for debugging purposes)
|
IDE_MODE
Configures the compiler for use as an IDE backend.
|
INLINE_CONSTANTS
Inlines constants (symbols that are all CAPS)
|
INLINE_FUNCTIONS
Inlines functions
|
INLINE_GETTERS
Inlines trivial getters
|
INLINE_PROPERTIES |
INLINE_VARIABLES
Inlines variables
|
LABEL_RENAMING
Controls label renaming.
|
LANG_IN_IS_ES6
If true, the input language is ES6.
|
MARK_NO_SIDE_EFFECT_CALLS |
MISSING_PROPERTIES
Checks for missing properties
|
MOVE_FUNCTION_DECLARATIONS
Move top level function declarations to the top
|
NAME_ANONYMOUS_FUNCTIONS
Give anonymous functions names for easier debugging
|
NAME_ANONYMOUS_FUNCTIONS_MAPPED
Give anonymous functions mapped names for easier debugging
|
OPTIMIZE_CALLS |
OPTIMIZE_PARAMETERS |
OPTIMIZE_RETURNS |
POLYMER_PASS |
PRESERVE_TYPE_ANNOTATIONS |
PRETTY_PRINT
Ouput in pretty indented format
|
PROPERTY_RENAMING |
REMOVE_DEAD_CODE
Removes code that will never execute
|
REMOVE_UNUSED_CLASS_PROPERTIES
Removes unused static class prototypes
|
REMOVE_UNUSED_PROTOTYPE_PROPERTIES
Removes unused member prototypes
|
REMOVE_UNUSED_PROTOTYPE_PROPERTIES_IN_EXTERNS
Tells AnalyzePrototypeProperties it can remove externed props.
|
REMOVE_UNUSED_VARIABLES
Removes unused variables
|
REWRITE_FUNCTION_EXPRESSIONS |
SKIP_NON_TRANSPILATION_PASSES
If true, skip all passes aside from transpilation-related ones.
|
SMART_NAME_REMOVAL
Removes code associated with unused global names
|
SYNTHETIC_BLOCK_MARKER |
TRANSPILE
If true, the output language is ES5.
|
VARIABLE_RENAMING
If true, rename all variables
|
Modifier and Type | Field and Description |
---|---|
private boolean |
defaultValue |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
apply(CompilerOptions options,
boolean value)
Applies a CGI parameter to the options.
|
(package private) boolean |
getDefaultValue()
Returns the default value.
|
(package private) static CompilationParam[] |
getSortedValues() |
static CompilationParam |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompilationParam[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompilationParam ENABLE_ALL_DIAGNOSTIC_GROUPS
public static final CompilationParam IDE_MODE
public static final CompilationParam LANG_IN_IS_ES6
public static final CompilationParam TRANSPILE
public static final CompilationParam SKIP_NON_TRANSPILATION_PASSES
public static final CompilationParam CHECK_LINT
public static final CompilationParam CHECK_SYMBOLS
public static final CompilationParam CHECK_MISSING_RETURN
public static final CompilationParam CHECK_SUSPICIOUS_CODE
public static final CompilationParam CHECK_TYPES
public static final CompilationParam CHECK_TYPES_NEW_INFERENCE
public static final CompilationParam MISSING_PROPERTIES
public static final CompilationParam CHECK_REPORT_MISSING_OVERRIDE
public static final CompilationParam CHECK_REQUIRES
public static final CompilationParam CHECK_PROVIDES
public static final CompilationParam CHECK_GLOBAL_NAMES
public static final CompilationParam CHECK_DEPRECATED
public static final CompilationParam CHECK_VISIBILITY
public static final CompilationParam CHECK_CONSTANTS
public static final CompilationParam CHECK_ES5_STRICT
public static final CompilationParam CHECK_GLOBAL_THIS
this
keyword that are considered
unsafe because they are likely to reference the global this
object unintentionally.public static final CompilationParam COMPUTE_FUNCTION_SIDE_EFFECTS
public static final CompilationParam FOLD_CONSTANTS
public static final CompilationParam DEAD_ASSIGNMENT_ELIMINATION
public static final CompilationParam INLINE_CONSTANTS
public static final CompilationParam INLINE_FUNCTIONS
public static final CompilationParam COALESCE_VARIABLE_NAMES
public static final CompilationParam INLINE_GETTERS
public static final CompilationParam INLINE_VARIABLES
public static final CompilationParam FLOW_SENSITIVE_INLINE_VARIABLES
public static final CompilationParam INLINE_PROPERTIES
public static final CompilationParam SMART_NAME_REMOVAL
public static final CompilationParam REMOVE_DEAD_CODE
public static final CompilationParam CHECK_UNREACHABLE_CODE
public static final CompilationParam EXTRACT_PROTOTYPE_MEMBER_DECLARATIONS
public static final CompilationParam REMOVE_UNUSED_PROTOTYPE_PROPERTIES
public static final CompilationParam REMOVE_UNUSED_CLASS_PROPERTIES
public static final CompilationParam REMOVE_UNUSED_PROTOTYPE_PROPERTIES_IN_EXTERNS
public static final CompilationParam REMOVE_UNUSED_VARIABLES
public static final CompilationParam COLLAPSE_VARIABLE_DECLARATIONS
public static final CompilationParam COLLAPSE_ANONYMOUS_FUNCTIONS
public static final CompilationParam ALIAS_ALL_STRINGS
public static final CompilationParam COVERT_TO_DOTTED_PROPERTIES
public static final CompilationParam LABEL_RENAMING
public static final CompilationParam GENERATE_PSEUDO_NAMES
public static final CompilationParam COLLAPSE_PROPERTIES
public static final CompilationParam DEVIRTUALIZE_PROTOTYPE_METHODS
public static final CompilationParam REWRITE_FUNCTION_EXPRESSIONS
public static final CompilationParam DISAMBIGUATE_PROPERTIES
public static final CompilationParam AMBIGUATE_PROPERTIES
public static final CompilationParam NAME_ANONYMOUS_FUNCTIONS
public static final CompilationParam NAME_ANONYMOUS_FUNCTIONS_MAPPED
public static final CompilationParam VARIABLE_RENAMING
public static final CompilationParam PROPERTY_RENAMING
public static final CompilationParam OPTIMIZE_CALLS
public static final CompilationParam OPTIMIZE_PARAMETERS
public static final CompilationParam OPTIMIZE_RETURNS
public static final CompilationParam CLOSURE_PASS
public static final CompilationParam MOVE_FUNCTION_DECLARATIONS
public static final CompilationParam GENERATE_EXPORTS
public static final CompilationParam ALLOW_LOCAL_EXPORTS
public static final CompilationParam MARK_NO_SIDE_EFFECT_CALLS
public static final CompilationParam CROSS_MODULE_CODE_MOTION
public static final CompilationParam CROSS_MODULE_METHOD_MOTION
public static final CompilationParam SYNTHETIC_BLOCK_MARKER
public static final CompilationParam ANGULAR_PASS
public static final CompilationParam POLYMER_PASS
public static final CompilationParam PRESERVE_TYPE_ANNOTATIONS
public static final CompilationParam PRETTY_PRINT
public static CompilationParam[] values()
for (CompilationParam c : CompilationParam.values()) System.out.println(c);
public static CompilationParam valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullboolean getDefaultValue()
static CompilationParam[] getSortedValues()
abstract void apply(CompilerOptions options, boolean value)