Record Class ClassFileDiagnostic
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ClassFileDiagnostic
- All Implemented Interfaces:
Comparable<ClassFileDiagnostic>
public record ClassFileDiagnostic(ClassFileDiagnosticCode code, String resourceName, ClassFileOrigin origin, ClassFileTraversalPhase phase, Map<String,String> context)
extends Record
implements Comparable<ClassFileDiagnostic>
Structured parser failure with resource, origin, and traversal context.
-
Constructor Summary
ConstructorsConstructorDescriptionClassFileDiagnostic(ClassFileDiagnosticCode code, String resourceName, ClassFileOrigin origin, ClassFileTraversalPhase phase, Map<String, String> context) Creates an instance of aClassFileDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcompareTo(ClassFileDiagnostic other) context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.phase()Returns the value of thephaserecord component.Returns the value of theresourceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassFileDiagnostic
public ClassFileDiagnostic(ClassFileDiagnosticCode code, String resourceName, ClassFileOrigin origin, ClassFileTraversalPhase phase, Map<String, String> context) Creates an instance of aClassFileDiagnosticrecord class.- Parameters:
code- the value for thecoderecord componentresourceName- the value for theresourceNamerecord componentorigin- the value for theoriginrecord componentphase- the value for thephaserecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ClassFileDiagnostic>
-
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). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
resourceName
Returns the value of theresourceNamerecord component.- Returns:
- the value of the
resourceNamerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
context
-