Record Class CallGraph.Call

java.lang.Object
java.lang.Record
sootup.callgraph.CallGraph.Call
Enclosing interface:
CallGraph

public static record CallGraph.Call(@NonNull MethodSignature sourceMethodSignature, @NonNull MethodSignature targetMethodSignature, @NonNull InvokableStmt invokableStmt) extends Record
  • Constructor Details

    • Call

      public Call(@NonNull MethodSignature sourceMethodSignature, @NonNull MethodSignature targetMethodSignature, @NonNull InvokableStmt invokableStmt)
      Creates an instance of a Call record class.
      Parameters:
      sourceMethodSignature - the value for the sourceMethodSignature record component
      targetMethodSignature - the value for the targetMethodSignature record component
      invokableStmt - the value for the invokableStmt record component
  • Method Details

    • getLineNumber

      public int getLineNumber()
      The line number of the stmt causing the call
      Returns:
      the line number of the stmt. If the position is unknown, it will return -1
    • equals

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • toString

      public @NonNull String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • sourceMethodSignature

      public @NonNull MethodSignature sourceMethodSignature()
      Returns the value of the sourceMethodSignature record component.
      Returns:
      the value of the sourceMethodSignature record component
    • targetMethodSignature

      public @NonNull MethodSignature targetMethodSignature()
      Returns the value of the targetMethodSignature record component.
      Returns:
      the value of the targetMethodSignature record component
    • invokableStmt

      public @NonNull InvokableStmt invokableStmt()
      Returns the value of the invokableStmt record component.
      Returns:
      the value of the invokableStmt record component