Class StmtPositionInfo

java.lang.Object
sootup.core.jimple.basic.StmtPositionInfo
Direct Known Subclasses:
SimpleStmtPositionInfo

public abstract class StmtPositionInfo extends Object
This class stores position information stored for a statement.
Author:
Linghui Luo, Markus Schmidt
  • Field Details

  • Constructor Details

    • StmtPositionInfo

      public StmtPositionInfo()
  • Method Details

    • getNoStmtPositionInfo

      @Nonnull public static StmtPositionInfo getNoStmtPositionInfo()
      Create an instance with no position information.
      Returns:
      an instance with no position information.
    • getStmtPosition

      @Nonnull public abstract Position getStmtPosition()
      Return the position of the statement.
      Returns:
      the position of the statement
    • getOperandPosition

      @Nullable public abstract Position getOperandPosition(int index)
      Return the precise position of the given operand in the statement.
      Parameters:
      index - the operand index
      Returns:
      the position of the given operand
    • toString

      public String toString()
      Overrides:
      toString in class Object