Package cs1302.tracer.trace
Record Class AstTypeResolver.ClassGenericInfo
java.lang.Object
java.lang.Record
cs1302.tracer.trace.AstTypeResolver.ClassGenericInfo
- Record Components:
classFqn- Fully qualified class name.typeParameters- List of generic type parameter names.fieldTypes- Map of field names to declared type strings.fieldIsFinal- Map of field names to final modifiers.implementedTypes- List of implemented interface type strings.extendedType- Optional extended superclass type string.
- Enclosing class:
AstTypeResolver
public static record AstTypeResolver.ClassGenericInfo(String classFqn, List<String> typeParameters, Map<String,String> fieldTypes, Map<String,Boolean> fieldIsFinal, List<String> implementedTypes, Optional<String> extendedType)
extends Record
Metadata for a class's generic type parameters, fields, and constructors.
-
Constructor Summary
ConstructorsConstructorDescriptionClassGenericInfo(String classFqn, List<String> typeParameters, Map<String, String> fieldTypes, Map<String, Boolean> fieldIsFinal) Backward-compatible 4-argument constructor.ClassGenericInfo(String classFqn, List<String> typeParameters, Map<String, String> fieldTypes, Map<String, Boolean> fieldIsFinal, List<String> implementedTypes, Optional<String> extendedType) Creates an instance of aClassGenericInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclassFqn()Returns the value of theclassFqnrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextendedTyperecord component.Returns the value of thefieldIsFinalrecord component.Returns the value of thefieldTypesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimplementedTypesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
ClassGenericInfo
public ClassGenericInfo(String classFqn, List<String> typeParameters, Map<String, String> fieldTypes, Map<String, Boolean> fieldIsFinal) Backward-compatible 4-argument constructor.- Parameters:
classFqn- Fully qualified class name.typeParameters- List of generic type parameter names.fieldTypes- Map of field names to declared type strings.fieldIsFinal- Map of field names to final modifiers.
-
ClassGenericInfo
public ClassGenericInfo(String classFqn, List<String> typeParameters, Map<String, String> fieldTypes, Map<String, Boolean> fieldIsFinal, List<String> implementedTypes, Optional<String> extendedType) Creates an instance of aClassGenericInforecord class.- Parameters:
classFqn- the value for theclassFqnrecord componenttypeParameters- the value for thetypeParametersrecord componentfieldTypes- the value for thefieldTypesrecord componentfieldIsFinal- the value for thefieldIsFinalrecord componentimplementedTypes- the value for theimplementedTypesrecord componentextendedType- the value for theextendedTyperecord 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). -
classFqn
Returns the value of theclassFqnrecord component.- Returns:
- the value of the
classFqnrecord component
-
typeParameters
Returns the value of thetypeParametersrecord component.- Returns:
- the value of the
typeParametersrecord component
-
fieldTypes
Returns the value of thefieldTypesrecord component.- Returns:
- the value of the
fieldTypesrecord component
-
fieldIsFinal
Returns the value of thefieldIsFinalrecord component.- Returns:
- the value of the
fieldIsFinalrecord component
-
implementedTypes
Returns the value of theimplementedTypesrecord component.- Returns:
- the value of the
implementedTypesrecord component
-
extendedType
Returns the value of theextendedTyperecord component.- Returns:
- the value of the
extendedTyperecord component
-