Record Class ClassFileParameterAnnotations.MethodAnnotations
java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ClassFileParameterAnnotations.MethodAnnotations
- Record Components:
returnType- Type annotations on the return typeparameters- Per parameter, in order: its parameter annotations and the type annotations on its type; empty lists where there are none
- Enclosing class:
ClassFileParameterAnnotations
public static record ClassFileParameterAnnotations.MethodAnnotations(List<ClassFileParameterAnnotations.Annotation> returnType, List<List<ClassFileParameterAnnotations.Annotation>> parameters)
extends Record
What a method's class file says about its annotations beyond what the compiler read.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClassFileParameterAnnotations.MethodAnnotationsA method that was not found, or annotates nothing this reads. -
Constructor Summary
ConstructorsConstructorDescriptionMethodAnnotations(List<ClassFileParameterAnnotations.Annotation> returnType, List<List<ClassFileParameterAnnotations.Annotation>> parameters) Creates an instance of aMethodAnnotationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns the value of theparametersrecord component.Returns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
A method that was not found, or annotates nothing this reads.
-
-
Constructor Details
-
MethodAnnotations
public MethodAnnotations(List<ClassFileParameterAnnotations.Annotation> returnType, List<List<ClassFileParameterAnnotations.Annotation>> parameters) Creates an instance of aMethodAnnotationsrecord class.- Parameters:
returnType- the value for thereturnTyperecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
- Whether anything was read
-
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). -
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-