Record Class AnnotatedTypes.TypeArguments

java.lang.Object
java.lang.Record
org.checkerframework.framework.util.AnnotatedTypes.TypeArguments
Record Components:
typeArguments - a mapping from TypeVariable to its annotated type argument
uncheckedConversion - true if unchecked conversion was needed for inference
inferenceCrash - true if type argument inference crashed
Enclosing class:
AnnotatedTypes

public static record AnnotatedTypes.TypeArguments(Map<TypeVariable,AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean inferenceCrash) extends Record
Class representing type arguments for a method, constructor, or method reference expression.
  • Constructor Details

    • TypeArguments

      public TypeArguments(Map<TypeVariable,AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean inferenceCrash)
      Creates an instance of a TypeArguments record class.
      Parameters:
      typeArguments - the value for the typeArguments record component
      uncheckedConversion - the value for the uncheckedConversion record component
      inferenceCrash - the value for the inferenceCrash 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • typeArguments

      public Map<TypeVariable,AnnotatedTypeMirror> typeArguments()
      Returns the value of the typeArguments record component.
      Returns:
      the value of the typeArguments record component
    • uncheckedConversion

      public boolean uncheckedConversion()
      Returns the value of the uncheckedConversion record component.
      Returns:
      the value of the uncheckedConversion record component
    • inferenceCrash

      public boolean inferenceCrash()
      Returns the value of the inferenceCrash record component.
      Returns:
      the value of the inferenceCrash record component