Enum ModuleLoader.PathEscaper
- java.lang.Object
-
- java.lang.Enum<ModuleLoader.PathEscaper>
-
- com.google.javascript.jscomp.deps.ModuleLoader.PathEscaper
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModuleLoader.PathEscaper>
- Enclosing class:
- ModuleLoader
public static enum ModuleLoader.PathEscaper extends java.lang.Enum<ModuleLoader.PathEscaper>
Indicates whether to escape characters in paths.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANONICALIZE_ONLY
Does not escaped characters in paths, but does canonicalize it according toModuleNames.canonicalizePath(String)
.ESCAPE
Escapes characters in paths according toModuleNames.escapePath(String)
and then canonicalizes it.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
escape(java.lang.String path)
static ModuleLoader.PathEscaper
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ModuleLoader.PathEscaper[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ESCAPE
public static final ModuleLoader.PathEscaper ESCAPE
Escapes characters in paths according toModuleNames.escapePath(String)
and then canonicalizes it.
-
CANONICALIZE_ONLY
public static final ModuleLoader.PathEscaper CANONICALIZE_ONLY
Does not escaped characters in paths, but does canonicalize it according toModuleNames.canonicalizePath(String)
.
-
-
Method Detail
-
values
public static ModuleLoader.PathEscaper[] 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.PathEscaper c : ModuleLoader.PathEscaper.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.PathEscaper 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
-
escape
public abstract java.lang.String escape(java.lang.String path)
-
-