Record Class ParsedAnnotationOccurrence
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedAnnotationOccurrence
- All Implemented Interfaces:
Comparable<ParsedAnnotationOccurrence>
public record ParsedAnnotationOccurrence(ParsedAnnotationOccurrence.Visibility visibility, ParsedAnnotationOccurrence.Container container, String ownerName, String ownerDescriptor, ParsedAnnotationOccurrence.Site site, OptionalInt parameterIndex, Optional<ParsedAnnotationOccurrence.TypeUseTarget> typeUseTarget, ParsedAnnotation annotation)
extends Record
implements Comparable<ParsedAnnotationOccurrence>
Exact declaration, parameter, record-component, or type-use annotation site.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionParsedAnnotationOccurrence(ParsedAnnotationOccurrence.Visibility visibility, ParsedAnnotationOccurrence.Container container, String ownerName, String ownerDescriptor, ParsedAnnotationOccurrence.Site site, OptionalInt parameterIndex, Optional<ParsedAnnotationOccurrence.TypeUseTarget> typeUseTarget, ParsedAnnotation annotation) Creates an instance of aParsedAnnotationOccurrencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationrecord component.intReturns the value of thecontainerrecord 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 theownerDescriptorrecord component.Returns the value of theownerNamerecord component.Returns the value of theparameterIndexrecord component.site()Returns the value of thesiterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeUseTargetrecord component.Returns the value of thevisibilityrecord component.
-
Constructor Details
-
ParsedAnnotationOccurrence
public ParsedAnnotationOccurrence(ParsedAnnotationOccurrence.Visibility visibility, ParsedAnnotationOccurrence.Container container, String ownerName, String ownerDescriptor, ParsedAnnotationOccurrence.Site site, OptionalInt parameterIndex, Optional<ParsedAnnotationOccurrence.TypeUseTarget> typeUseTarget, ParsedAnnotation annotation) Creates an instance of aParsedAnnotationOccurrencerecord class.- Parameters:
visibility- the value for thevisibilityrecord componentcontainer- the value for thecontainerrecord componentownerName- the value for theownerNamerecord componentownerDescriptor- the value for theownerDescriptorrecord componentsite- the value for thesiterecord componentparameterIndex- the value for theparameterIndexrecord componenttypeUseTarget- the value for thetypeUseTargetrecord componentannotation- the value for theannotationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedAnnotationOccurrence>
-
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). -
visibility
Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
ownerName
Returns the value of theownerNamerecord component.- Returns:
- the value of the
ownerNamerecord component
-
ownerDescriptor
Returns the value of theownerDescriptorrecord component.- Returns:
- the value of the
ownerDescriptorrecord component
-
site
Returns the value of thesiterecord component.- Returns:
- the value of the
siterecord component
-
parameterIndex
Returns the value of theparameterIndexrecord component.- Returns:
- the value of the
parameterIndexrecord component
-
typeUseTarget
Returns the value of thetypeUseTargetrecord component.- Returns:
- the value of the
typeUseTargetrecord component
-
annotation
Returns the value of theannotationrecord component.- Returns:
- the value of the
annotationrecord component
-