Enum JsFileFullParser.FileInfo.ModuleType
- java.lang.Object
-
- java.lang.Enum<JsFileFullParser.FileInfo.ModuleType>
-
- com.google.javascript.jscomp.deps.JsFileFullParser.FileInfo.ModuleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsFileFullParser.FileInfo.ModuleType>
- Enclosing class:
- JsFileFullParser.FileInfo
public static enum JsFileFullParser.FileInfo.ModuleType extends java.lang.Enum<JsFileFullParser.FileInfo.ModuleType>
The module system declared by the file, e.g. goog.provide/goog.module.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GOOG_MODULE
GOOG_PROVIDE
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsFileFullParser.FileInfo.ModuleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsFileFullParser.FileInfo.ModuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final JsFileFullParser.FileInfo.ModuleType UNKNOWN
-
GOOG_PROVIDE
public static final JsFileFullParser.FileInfo.ModuleType GOOG_PROVIDE
-
GOOG_MODULE
public static final JsFileFullParser.FileInfo.ModuleType GOOG_MODULE
-
-
Method Detail
-
values
public static JsFileFullParser.FileInfo.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 (JsFileFullParser.FileInfo.ModuleType c : JsFileFullParser.FileInfo.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 JsFileFullParser.FileInfo.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
-
-