Enum ModuleMetadataMap.ModuleType
- java.lang.Object
-
- java.lang.Enum<ModuleMetadataMap.ModuleType>
-
- com.google.javascript.jscomp.modules.ModuleMetadataMap.ModuleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModuleMetadataMap.ModuleType>
- Enclosing class:
- ModuleMetadataMap
public static enum ModuleMetadataMap.ModuleType extends java.lang.Enum<ModuleMetadataMap.ModuleType>
Various types of Javascript modules and scripts that can be found in the JS Compiler.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMON_JS
ES6_MODULE
GOOG_MODULE
A goog.module that does not declare a legacy namespace.GOOG_PROVIDE
LEGACY_GOOG_MODULE
A goog.module that declares a legacy namespace with goog.module.declareLegacyNamespace.SCRIPT
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModuleMetadataMap.ModuleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ModuleMetadataMap.ModuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ES6_MODULE
public static final ModuleMetadataMap.ModuleType ES6_MODULE
-
GOOG_MODULE
public static final ModuleMetadataMap.ModuleType GOOG_MODULE
A goog.module that does not declare a legacy namespace.
-
LEGACY_GOOG_MODULE
public static final ModuleMetadataMap.ModuleType LEGACY_GOOG_MODULE
A goog.module that declares a legacy namespace with goog.module.declareLegacyNamespace.
-
COMMON_JS
public static final ModuleMetadataMap.ModuleType COMMON_JS
-
GOOG_PROVIDE
public static final ModuleMetadataMap.ModuleType GOOG_PROVIDE
-
SCRIPT
public static final ModuleMetadataMap.ModuleType SCRIPT
-
-
Method Detail
-
values
public static ModuleMetadataMap.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 (ModuleMetadataMap.ModuleType c : ModuleMetadataMap.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 ModuleMetadataMap.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
-
-