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 field
declared - the value corresponding to the annotations on the declared type of the field
initializer - 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 Details

    • FieldInitialValue

      public FieldInitialValue(FieldAccess fieldDecl, V declared, @Nullable V initializer)
      Creates an instance of a FieldInitialValue record class.
      Parameters:
      fieldDecl - the value for the fieldDecl record component
      declared - the value for the declared record component
      initializer - the value for the initializer record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fieldDecl

      public FieldAccess fieldDecl()
      Returns the value of the fieldDecl record component.
      Returns:
      the value of the fieldDecl record component
    • declared

      public V declared()
      Returns the value of the declared record component.
      Returns:
      the value of the declared record component
    • initializer

      public @Nullable V initializer()
      Returns the value of the initializer record component.
      Returns:
      the value of the initializer record component