Record Class ParsedExceptionEvidence
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedExceptionEvidence
- All Implemented Interfaces:
Comparable<ParsedExceptionEvidence>
public record ParsedExceptionEvidence(ParsedExceptionEvidence.Kind kind, Optional<String> targetDescriptor, OptionalInt bytecodeOffset)
extends Record
implements Comparable<ParsedExceptionEvidence>
Backend-neutral exception declaration, handler, or throw instruction.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParsedExceptionEvidence(ParsedExceptionEvidence.Kind kind, Optional<String> targetDescriptor, OptionalInt bytecodeOffset) Creates an instance of aParsedExceptionEvidencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebytecodeOffsetrecord component.intcompareTo(ParsedExceptionEvidence other) 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.Returns the value of thetargetDescriptorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedExceptionEvidence
public ParsedExceptionEvidence(ParsedExceptionEvidence.Kind kind, Optional<String> targetDescriptor, OptionalInt bytecodeOffset) Creates an instance of aParsedExceptionEvidencerecord class.- Parameters:
kind- the value for thekindrecord componenttargetDescriptor- the value for thetargetDescriptorrecord componentbytecodeOffset- the value for thebytecodeOffsetrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedExceptionEvidence>
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
targetDescriptor
-
bytecodeOffset
Returns the value of thebytecodeOffsetrecord component.- Returns:
- the value of the
bytecodeOffsetrecord component
-