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 aCall
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
The line number of the stmt causing the callfinal int
hashCode()
Returns a hash code value for this object.@NonNull InvokableStmt
Returns the value of theinvokableStmt
record component.@NonNull MethodSignature
Returns the value of thesourceMethodSignature
record component.@NonNull MethodSignature
Returns the value of thetargetMethodSignature
record component.@NonNull String
toString()
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 aCall
record class.- Parameters:
sourceMethodSignature
- the value for thesourceMethodSignature
record componenttargetMethodSignature
- the value for thetargetMethodSignature
record componentinvokableStmt
- the value for theinvokableStmt
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
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 thesourceMethodSignature
record component.- Returns:
- the value of the
sourceMethodSignature
record component
-
targetMethodSignature
Returns the value of thetargetMethodSignature
record component.- Returns:
- the value of the
targetMethodSignature
record component
-
invokableStmt
Returns the value of theinvokableStmt
record component.- Returns:
- the value of the
invokableStmt
record component
-