Class Position

java.lang.Object
sootup.core.model.Position
All Implemented Interfaces:
Comparable<Position>
Direct Known Subclasses:
FullPosition, LinePosition

public abstract class Position extends Object implements Comparable<Position>
  • Constructor Details

    • Position

      public Position()
  • Method Details

    • getFirstLine

      public abstract int getFirstLine()
    • getLastLine

      public abstract int getLastLine()
    • getFirstCol

      public abstract int getFirstCol()
    • getLastCol

      public abstract int getLastCol()
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(@Nonnull Position position)
      Compares "Positions" by their starting line/column Note: this class has a natural ordering that is inconsistent with equals
      Specified by:
      compareTo in interface Comparable<Position>