Record Class GenericAnnotatedTypeFactory.LambdaAndStore<S>
java.lang.Object
java.lang.Record
org.checkerframework.framework.type.GenericAnnotatedTypeFactory.LambdaAndStore<S>
- Type Parameters:
S- the store type used in the analysis- Record Components:
lambda- a lambdastore- the store captured wherelambdais declared, or null if the lambda is unreachable
- Enclosing class:
GenericAnnotatedTypeFactory<Value extends CFAbstractValue<Value>,Store extends CFAbstractStore<Value, Store>, TransferFunction extends CFAbstractTransfer<Value, Store, TransferFunction>, FlowAnalysis extends CFAbstractAnalysis<Value, Store, TransferFunction>>
public static record GenericAnnotatedTypeFactory.LambdaAndStore<S>(LambdaExpressionTree lambda, @Nullable S store)
extends Record
A lambda and the store to use when analyzing it.
-
Constructor Summary
ConstructorsConstructorDescriptionLambdaAndStore(LambdaExpressionTree lambda, @Nullable S store) Creates an instance of aLambdaAndStorerecord 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.lambda()Returns the value of thelambdarecord component.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
lambda
Returns the value of thelambdarecord component.- Returns:
- the value of the
lambdarecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-