Record Class GenericMethodView
java.lang.Object
java.lang.Record
dev.archunitjava.model.GenericMethodView
public record GenericMethodView(JvmMethodType erasedType, Optional<String> declaredSignature, Optional<GenericMethodSignature> genericSignature, List<GenericSignatureDiagnostic> diagnostics)
extends Record
Erased method type plus independently parsed optional generic evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericMethodView(JvmMethodType erasedType, Optional<String> declaredSignature, Optional<GenericMethodSignature> genericSignature, List<GenericSignatureDiagnostic> diagnostics) Creates an instance of aGenericMethodViewrecord 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 theerasedTyperecord 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.boolean
-
Constructor Details
-
GenericMethodView
public GenericMethodView(JvmMethodType erasedType, Optional<String> declaredSignature, Optional<GenericMethodSignature> genericSignature, List<GenericSignatureDiagnostic> diagnostics) Creates an instance of aGenericMethodViewrecord class.- Parameters:
erasedType- the value for theerasedTyperecord componentdeclaredSignature- the value for thedeclaredSignaturerecord componentgenericSignature- the value for thegenericSignaturerecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
usesErasedFallback
public boolean usesErasedFallback() -
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). -
erasedType
Returns the value of theerasedTyperecord component.- Returns:
- the value of the
erasedTyperecord 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
-