Class SourceMap.PrefixLocationMapping

    • Constructor Summary

      Constructors 
      Constructor Description
      PrefixLocationMapping​(java.lang.String prefix, java.lang.String replacement)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String map​(java.lang.String location)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrefixLocationMapping

        public PrefixLocationMapping​(java.lang.String prefix,
                                     java.lang.String replacement)
    • Method Detail

      • map

        public java.lang.String map​(java.lang.String location)
        Specified by:
        map in interface SourceMap.LocationMapping
        Parameters:
        location - the location to transform
        Returns:
        the transformed location or null if not transformed
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object