Record Class GenericAnnotatedTypeFactory.ClassAndStore<S>
java.lang.Object
java.lang.Record
org.checkerframework.framework.type.GenericAnnotatedTypeFactory.ClassAndStore<S>
- Type Parameters:
S- the store type used in the analysis- Record Components:
classTree- a class treestore- the store captured whereclassTreeis declared, or null if there is none
- 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.ClassAndStore<S>(ClassTree classTree, @Nullable S store)
extends Record
A class tree and the store to use when analyzing it.
-
Constructor Summary
ConstructorsConstructorDescriptionClassAndStore(ClassTree classTree, @Nullable S store) Creates an instance of aClassAndStorerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassTreerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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). -
classTree
Returns the value of theclassTreerecord component.- Returns:
- the value of the
classTreerecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-