Record Class CFAbstractAnalysis.FieldInitialValue<V extends CFAbstractValue<V>>
java.lang.Object
java.lang.Record
org.checkerframework.framework.flow.CFAbstractAnalysis.FieldInitialValue<V>
- Type Parameters:
V- type of value- Record Components:
fieldDecl- a field access that corresponds to the declaration of a fielddeclared- the value corresponding to the annotations on the declared type of the fieldinitializer- the value of the initializer of the field, or null if no initializer exists
- Enclosing class:
CFAbstractAnalysis<V extends CFAbstractValue<V>,S extends CFAbstractStore<V, S>, T extends CFAbstractTransfer<V, S, T>>
public static record CFAbstractAnalysis.FieldInitialValue<V extends CFAbstractValue<V>>(FieldAccess fieldDecl, V extends CFAbstractValue<V> declared, @Nullable V extends CFAbstractValue<V> initializer)
extends Record
A triple of field, value corresponding to the annotations on its declared type, value of its
initializer. The value of the initializer is
null if the field does not have one.-
Constructor Summary
ConstructorsConstructorDescriptionFieldInitialValue(FieldAccess fieldDecl, V declared, @Nullable V initializer) Creates an instance of aFieldInitialValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeclared()Returns the value of thedeclaredrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldDeclrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinitializerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldInitialValue
Creates an instance of aFieldInitialValuerecord class.- Parameters:
fieldDecl- the value for thefieldDeclrecord componentdeclared- the value for thedeclaredrecord componentinitializer- the value for theinitializerrecord 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). -
fieldDecl
Returns the value of thefieldDeclrecord component.- Returns:
- the value of the
fieldDeclrecord component
-
declared
Returns the value of thedeclaredrecord component.- Returns:
- the value of the
declaredrecord component
-
initializer
Returns the value of theinitializerrecord component.- Returns:
- the value of the
initializerrecord component
-