Package com.google.javascript.jscomp
Enum DependencyOptions.DependencyMode
- java.lang.Object
-
- java.lang.Enum<DependencyOptions.DependencyMode>
-
- com.google.javascript.jscomp.DependencyOptions.DependencyMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DependencyOptions.DependencyMode>
- Enclosing class:
- DependencyOptions
public static enum DependencyOptions.DependencyMode extends java.lang.Enum<DependencyOptions.DependencyMode>
Describes how the compiler should manage dependencies.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
All input files will be included in the compilation in the order they were specified in.PRUNE
Input files that are transitive dependencies of the entry points will be included in the compilation in dependency order.PRUNE_LEGACY
Input files that are transitive dependencies of the entry points will be included in the compilation in dependency order.SORT_ONLY
All input files will be included in the compilation in dependency order.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DependencyOptions.DependencyMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DependencyOptions.DependencyMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DependencyOptions.DependencyMode NONE
All input files will be included in the compilation in the order they were specified in.
-
SORT_ONLY
public static final DependencyOptions.DependencyMode SORT_ONLY
All input files will be included in the compilation in dependency order.
-
PRUNE_LEGACY
public static final DependencyOptions.DependencyMode PRUNE_LEGACY
Input files that are transitive dependencies of the entry points will be included in the compilation in dependency order. All other input files will be dropped.In addition to the explicitly defined entry points, moochers (see below) are implicit entry points.
-
PRUNE
public static final DependencyOptions.DependencyMode PRUNE
Input files that are transitive dependencies of the entry points will be included in the compilation in dependency order. All other input files will be dropped.All entry points must be explicitly defined.
-
-
Method Detail
-
values
public static DependencyOptions.DependencyMode[] 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 (DependencyOptions.DependencyMode c : DependencyOptions.DependencyMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DependencyOptions.DependencyMode 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
-
-