Record Class JavaExceptionEvidence
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaExceptionEvidence
- All Implemented Interfaces:
Comparable<JavaExceptionEvidence>
public record JavaExceptionEvidence(JavaMemberSignature owner, JavaExceptionEvidenceKind kind, Optional<JvmReferenceType> targetType, DeclarationLocation declarationLocation, Optional<BytecodeLocation> bytecodeLocation)
extends Record
implements Comparable<JavaExceptionEvidence>
One exception declaration or bytecode fact, without inferred runtime types.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaExceptionEvidence(JavaMemberSignature owner, JavaExceptionEvidenceKind kind, Optional<JvmReferenceType> targetType, DeclarationLocation declarationLocation, Optional<BytecodeLocation> bytecodeLocation) Creates an instance of aJavaExceptionEvidencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebytecodeLocationrecord component.intcompareTo(JavaExceptionEvidence other) Returns the value of thedeclarationLocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.owner()Returns the value of theownerrecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaExceptionEvidence
public JavaExceptionEvidence(JavaMemberSignature owner, JavaExceptionEvidenceKind kind, Optional<JvmReferenceType> targetType, DeclarationLocation declarationLocation, Optional<BytecodeLocation> bytecodeLocation) Creates an instance of aJavaExceptionEvidencerecord class.- Parameters:
owner- the value for theownerrecord componentkind- the value for thekindrecord componenttargetType- the value for thetargetTyperecord componentdeclarationLocation- the value for thedeclarationLocationrecord componentbytecodeLocation- the value for thebytecodeLocationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaExceptionEvidence>
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
declarationLocation
Returns the value of thedeclarationLocationrecord component.- Returns:
- the value of the
declarationLocationrecord component
-
bytecodeLocation
Returns the value of thebytecodeLocationrecord component.- Returns:
- the value of the
bytecodeLocationrecord component
-