Record Class ReturnStatementStore<V extends AbstractValue<V>,S extends Store<S>>
java.lang.Object
java.lang.Record
org.checkerframework.dataflow.analysis.ReturnStatementStore<V,S>
- Type Parameters:
V- the abstract value type tracked by the analysisS- the store type used in the analysis- Record Components:
returnNode- a return statementtransferResult- the transfer result atreturnNode, or null ifreturnNodeis unreachable
public record ReturnStatementStore<V extends AbstractValue<V>,S extends Store<S>> (ReturnNode returnNode, @Nullable TransferResult<V extends AbstractValue<V>,S extends Store<S>> transferResult)
extends Record
A return statement and the transfer result at it.
-
Constructor Summary
ConstructorsConstructorDescriptionReturnStatementStore(ReturnNode returnNode, @Nullable TransferResult<V, S> transferResult) Creates an instance of aReturnStatementStorerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereturnNoderecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransferResultrecord component.
-
Constructor Details
-
ReturnStatementStore
Creates an instance of aReturnStatementStorerecord class.- Parameters:
returnNode- the value for thereturnNoderecord componenttransferResult- the value for thetransferResultrecord component
-
-
Method Details
-
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. -
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). -
returnNode
Returns the value of thereturnNoderecord component.- Returns:
- the value of the
returnNoderecord component
-
transferResult
Returns the value of thetransferResultrecord component.- Returns:
- the value of the
transferResultrecord component
-