Package com.google.javascript.jscomp
Enum CompilerInput.ModuleType
- java.lang.Object
-
- java.lang.Enum<CompilerInput.ModuleType>
-
- com.google.javascript.jscomp.CompilerInput.ModuleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompilerInput.ModuleType>
- Enclosing class:
- CompilerInput
public static enum CompilerInput.ModuleType extends java.lang.Enum<CompilerInput.ModuleType>
JavaScript module type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompilerInput.ModuleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompilerInput.ModuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final CompilerInput.ModuleType NONE
-
GOOG
public static final CompilerInput.ModuleType GOOG
-
ES6
public static final CompilerInput.ModuleType ES6
-
COMMONJS
public static final CompilerInput.ModuleType COMMONJS
-
JSON
public static final CompilerInput.ModuleType JSON
-
IMPORTED_SCRIPT
public static final CompilerInput.ModuleType IMPORTED_SCRIPT
-
-
Method Detail
-
values
public static CompilerInput.ModuleType[] 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 (CompilerInput.ModuleType c : CompilerInput.ModuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompilerInput.ModuleType 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
-
-