Package sootup.callgraph
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 Summary
ConstructorsConstructorDescriptionCall(@NonNull MethodSignature sourceMethodSignature, @NonNull MethodSignature targetMethodSignature, @NonNull InvokableStmt invokableStmt) Creates an instance of aCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.intThe line number of the stmt causing the callfinal inthashCode()Returns a hash code value for this object.@NonNull InvokableStmtReturns the value of theinvokableStmtrecord component.@NonNull MethodSignatureReturns the value of thesourceMethodSignaturerecord component.@NonNull MethodSignatureReturns the value of thetargetMethodSignaturerecord component.@NonNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Call
public Call(@NonNull MethodSignature sourceMethodSignature, @NonNull MethodSignature targetMethodSignature, @NonNull InvokableStmt invokableStmt) Creates an instance of aCallrecord class.- Parameters:
sourceMethodSignature- the value for thesourceMethodSignaturerecord componenttargetMethodSignature- the value for thetargetMethodSignaturerecord componentinvokableStmt- the value for theinvokableStmtrecord 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
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 withObjects::equals(Object,Object). -
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. -
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. -
sourceMethodSignature
Returns the value of thesourceMethodSignaturerecord component.- Returns:
- the value of the
sourceMethodSignaturerecord component
-
targetMethodSignature
Returns the value of thetargetMethodSignaturerecord component.- Returns:
- the value of the
targetMethodSignaturerecord component
-
invokableStmt
Returns the value of theinvokableStmtrecord component.- Returns:
- the value of the
invokableStmtrecord component
-