Enum DependencyInfo.Require.Type
- java.lang.Object
-
- java.lang.Enum<DependencyInfo.Require.Type>
-
- com.google.javascript.jscomp.deps.DependencyInfo.Require.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DependencyInfo.Require.Type>
- Enclosing class:
- DependencyInfo.Require
public static enum DependencyInfo.Require.Type extends java.lang.Enum<DependencyInfo.Require.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMON_JS
CommonJS require() call.COMPILER_MODULE
Compiler module dependencies.ES6_IMPORT
ES6 import statement.GOOG_REQUIRE_SYMBOL
Standard goog.require call for a symbol from a goog.provide or goog.module.PARSED_FROM_DEPS
Parsed from an existing Closure dependency file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DependencyInfo.Require.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DependencyInfo.Require.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOOG_REQUIRE_SYMBOL
public static final DependencyInfo.Require.Type GOOG_REQUIRE_SYMBOL
Standard goog.require call for a symbol from a goog.provide or goog.module.
-
ES6_IMPORT
public static final DependencyInfo.Require.Type ES6_IMPORT
ES6 import statement.
-
PARSED_FROM_DEPS
public static final DependencyInfo.Require.Type PARSED_FROM_DEPS
Parsed from an existing Closure dependency file.
-
COMMON_JS
public static final DependencyInfo.Require.Type COMMON_JS
CommonJS require() call.
-
COMPILER_MODULE
public static final DependencyInfo.Require.Type COMPILER_MODULE
Compiler module dependencies.
-
-
Method Detail
-
values
public static DependencyInfo.Require.Type[] 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 (DependencyInfo.Require.Type c : DependencyInfo.Require.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DependencyInfo.Require.Type 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
-
-