Enum ModuleLoader.PathResolver
- java.lang.Object
-
- java.lang.Enum<ModuleLoader.PathResolver>
-
- com.google.javascript.jscomp.deps.ModuleLoader.PathResolver
-
- All Implemented Interfaces:
com.google.common.base.Function<java.lang.String,java.lang.String>
,java.io.Serializable
,java.lang.Comparable<ModuleLoader.PathResolver>
,java.util.function.Function<java.lang.String,java.lang.String>
- Enclosing class:
- ModuleLoader
public static enum ModuleLoader.PathResolver extends java.lang.Enum<ModuleLoader.PathResolver> implements com.google.common.base.Function<java.lang.String,java.lang.String>
An enum indicating whether to absolutize paths.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModuleLoader.PathResolver
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ModuleLoader.PathResolver[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELATIVE
public static final ModuleLoader.PathResolver RELATIVE
-
ABSOLUTE
@GwtIncompatible("Paths.get, Path.toAbsolutePath") public static final ModuleLoader.PathResolver ABSOLUTE
-
-
Method Detail
-
values
public static ModuleLoader.PathResolver[] 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 (ModuleLoader.PathResolver c : ModuleLoader.PathResolver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModuleLoader.PathResolver 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
-
-