Record Class GenericClassView
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericClassView
public record GenericClassView(Optional<JvmReferenceType> erasedSuperclass, List<JvmReferenceType> erasedInterfaces, Optional<String> declaredSignature, Optional<GenericClassSignature> genericSignature, List<GenericSignatureDiagnostic> diagnostics)
extends Record
Erased class hierarchy plus independently parsed optional generic evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericClassView(Optional<JvmReferenceType> erasedSuperclass, List<JvmReferenceType> erasedInterfaces, Optional<String> declaredSignature, Optional<GenericClassSignature> genericSignature, List<GenericSignatureDiagnostic> diagnostics) Creates an instance of aGenericClassViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredSignaturerecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerasedInterfacesrecord component.Returns the value of theerasedSuperclassrecord component.Returns the value of thegenericSignaturerecord component.final inthashCode()Returns a hash code value for this object.referencedTypes(TypeReferenceEvidence evidence) final StringtoString()Returns a string representation of this record class.booleanTrue when queries must rely on the descriptor/class-header view.
-
Constructor Details
-
GenericClassView
public GenericClassView(Optional<JvmReferenceType> erasedSuperclass, List<JvmReferenceType> erasedInterfaces, Optional<String> declaredSignature, Optional<GenericClassSignature> genericSignature, List<GenericSignatureDiagnostic> diagnostics) Creates an instance of aGenericClassViewrecord class.- Parameters:
erasedSuperclass- the value for theerasedSuperclassrecord componenterasedInterfaces- the value for theerasedInterfacesrecord componentdeclaredSignature- the value for thedeclaredSignaturerecord componentgenericSignature- the value for thegenericSignaturerecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
usesErasedFallback
public boolean usesErasedFallback()True when queries must rely on the descriptor/class-header view. -
referencedTypes
-
toString
-
hashCode
-
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). -
erasedSuperclass
Returns the value of theerasedSuperclassrecord component.- Returns:
- the value of the
erasedSuperclassrecord component
-
erasedInterfaces
Returns the value of theerasedInterfacesrecord component.- Returns:
- the value of the
erasedInterfacesrecord component
-
declaredSignature
-
genericSignature
Returns the value of thegenericSignaturerecord component.- Returns:
- the value of the
genericSignaturerecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-