Class FileLocation

  • All Implemented Interfaces:
    java.lang.Comparable<Location>

    public class FileLocation
    extends Location
    Represents a unique location in a file, e.g. JAR/APK resources. They comprise the name of the containing file and the line therein.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileLocation​(java.lang.String filename, int line)  
      FileLocation​(java.lang.String filename, int line, java.lang.String obfuscatedFilename)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Location o)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()
      Returns the name of the location, e.g., the signature of a CodeLocation, or the filename of a FileLocation
      java.lang.String getOriginalFilename()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • filename

        public final java.lang.String filename
      • obfuscatedFilename

        public java.lang.String obfuscatedFilename
    • Constructor Detail

      • FileLocation

        public FileLocation​(java.lang.String filename,
                            int line)
      • FileLocation

        public FileLocation​(java.lang.String filename,
                            int line,
                            java.lang.String obfuscatedFilename)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: Location
        Returns the name of the location, e.g., the signature of a CodeLocation, or the filename of a FileLocation
        Specified by:
        getName in class Location
      • toString

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

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

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

        public int compareTo​(Location o)
      • getOriginalFilename

        public java.lang.String getOriginalFilename()