Enum Class ModuleLoader.PathEscaper

java.lang.Object
java.lang.Enum<ModuleLoader.PathEscaper>
com.google.javascript.jscomp.deps.ModuleLoader.PathEscaper
All Implemented Interfaces:
Serializable, Comparable<ModuleLoader.PathEscaper>, Constable
Enclosing class:
ModuleLoader

public static enum ModuleLoader.PathEscaper extends Enum<ModuleLoader.PathEscaper>
Indicates whether to escape characters in paths.
  • Enum Constant Details

    • ESCAPE

      public static final ModuleLoader.PathEscaper ESCAPE
      Escapes characters in paths according to ModuleNames.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 to ModuleNames.canonicalizePath(String).
  • Method Details

    • values

      public static ModuleLoader.PathEscaper[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModuleLoader.PathEscaper valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • escape

      public abstract String escape(String path)