Package com.google.javascript.jscomp
Enum CompilerOptions.ExperimentalForceTranspile
- java.lang.Object
-
- java.lang.Enum<CompilerOptions.ExperimentalForceTranspile>
-
- com.google.javascript.jscomp.CompilerOptions.ExperimentalForceTranspile
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompilerOptions.ExperimentalForceTranspile>
- Enclosing class:
- CompilerOptions
public static enum CompilerOptions.ExperimentalForceTranspile extends java.lang.Enum<CompilerOptions.ExperimentalForceTranspile>
Options to force transpile specific features for performance experiments.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_EXCEPT_ASYNC_AWAIT
Transpile all features down to ES5 except ASYNC AWAITCLASS
Causes classes to always be removed from the output featureset if present previously.LET_CONST
Causes let/const to always be removed from the output featureset if present previously.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompilerOptions.ExperimentalForceTranspile
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompilerOptions.ExperimentalForceTranspile[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LET_CONST
public static final CompilerOptions.ExperimentalForceTranspile LET_CONST
Causes let/const to always be removed from the output featureset if present previously.For targets that set `options.setForceLetConstTranspilation(true)`: - if they already set <= ES5 output, no change - if they set >= ES6 output, then { force transpile let/const + classes + rewrite ESModules + isolatePolyfills + rewritePolyfills}
-
CLASS
public static final CompilerOptions.ExperimentalForceTranspile CLASS
Causes classes to always be removed from the output featureset if present previously.For targets that set `options.setForceClassTranspilation(true)`: - if they already set <= ES5 output, no change - if they set >= ES6 output, then { force transpile classes + rewrite ESModules + isolatePolyfills + rewritePolyfills}
-
ALL_EXCEPT_ASYNC_AWAIT
public static final CompilerOptions.ExperimentalForceTranspile ALL_EXCEPT_ASYNC_AWAIT
Transpile all features down to ES5 except ASYNC AWAIT
-
-
Method Detail
-
values
public static CompilerOptions.ExperimentalForceTranspile[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompilerOptions.ExperimentalForceTranspile c : CompilerOptions.ExperimentalForceTranspile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompilerOptions.ExperimentalForceTranspile valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-