Record Class MetaAnnotationResult
java.lang.Object
java.lang.Record
dev.archunitjava.model.MetaAnnotationResult
public record MetaAnnotationResult(List<JvmReferenceType> annotations, List<JvmReferenceType> missingAnnotationTypes, boolean depthLimitReached, boolean cycleDetected)
extends Record
Bounded meta-annotation traversal with explicit gaps, depth limits, and cycles.
-
Constructor Summary
ConstructorsConstructorDescriptionMetaAnnotationResult(List<JvmReferenceType> annotations, List<JvmReferenceType> missingAnnotationTypes, boolean depthLimitReached, boolean cycleDetected) Creates an instance of aMetaAnnotationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.booleancomplete()booleanReturns the value of thecycleDetectedrecord component.booleanReturns the value of thedepthLimitReachedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themissingAnnotationTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetaAnnotationResult
public MetaAnnotationResult(List<JvmReferenceType> annotations, List<JvmReferenceType> missingAnnotationTypes, boolean depthLimitReached, boolean cycleDetected) Creates an instance of aMetaAnnotationResultrecord class.- Parameters:
annotations- the value for theannotationsrecord componentmissingAnnotationTypes- the value for themissingAnnotationTypesrecord componentdepthLimitReached- the value for thedepthLimitReachedrecord componentcycleDetected- the value for thecycleDetectedrecord component
-
-
Method Details
-
complete
public boolean complete() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
missingAnnotationTypes
Returns the value of themissingAnnotationTypesrecord component.- Returns:
- the value of the
missingAnnotationTypesrecord component
-
depthLimitReached
public boolean depthLimitReached()Returns the value of thedepthLimitReachedrecord component.- Returns:
- the value of the
depthLimitReachedrecord component
-
cycleDetected
public boolean cycleDetected()Returns the value of thecycleDetectedrecord component.- Returns:
- the value of the
cycleDetectedrecord component
-