Class Location

  • All Implemented Interfaces:
    java.lang.Comparable<Location>
    Direct Known Subclasses:
    CodeLocation, FileLocation

    public abstract class Location
    extends java.lang.Object
    implements java.lang.Comparable<Location>
    Helper data structure that makes it possible to identify specific places inside a program, either inside the bytecode (CodeLocation) or some other file, e.g. JAR/APK resources (FileLocation).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int line  
      static int UNKNOWN_LINE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Location​(int line)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String getName()
      Returns the name of the location, e.g., the signature of a CodeLocation, or the filename of a FileLocation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Field Detail

      • line

        public final int line
    • Constructor Detail

      • Location

        protected Location​(int line)
    • Method Detail

      • getName

        public abstract java.lang.String getName()
        Returns the name of the location, e.g., the signature of a CodeLocation, or the filename of a FileLocation