Record Class ClassFileParameterAnnotations.PrivateMethod
java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ClassFileParameterAnnotations.PrivateMethod
- Record Components:
name- The method namesignature- Its generic signature, or its descriptor when it has noneparameterNames- The parameter names fromMethodParameters, empty when absentisStatic- Whether it is staticannotations- The annotations on the methodparameterAnnotations- Its parameter and type annotations
- Enclosing class:
ClassFileParameterAnnotations
public static record ClassFileParameterAnnotations.PrivateMethod(String name, MethodSignature signature, List<@Nullable String> parameterNames, boolean isStatic, List<ClassFileParameterAnnotations.Annotation> annotations, ClassFileParameterAnnotations.MethodAnnotations parameterAnnotations)
extends Record
A private method the compiler did not enter.
-
Constructor Summary
ConstructorsConstructorDescriptionPrivateMethod(String name, MethodSignature signature, List<@Nullable String> parameterNames, boolean isStatic, List<ClassFileParameterAnnotations.Annotation> annotations, ClassFileParameterAnnotations.MethodAnnotations parameterAnnotations) Creates an instance of aPrivateMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisStatic()Returns the value of theisStaticrecord component.name()Returns the value of thenamerecord component.Returns the value of theparameterAnnotationsrecord component.Returns the value of theparameterNamesrecord component.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrivateMethod
public PrivateMethod(String name, MethodSignature signature, List<@Nullable String> parameterNames, boolean isStatic, List<ClassFileParameterAnnotations.Annotation> annotations, ClassFileParameterAnnotations.MethodAnnotations parameterAnnotations) Creates an instance of aPrivateMethodrecord class.- Parameters:
name- the value for thenamerecord componentsignature- the value for thesignaturerecord componentparameterNames- the value for theparameterNamesrecord componentisStatic- the value for theisStaticrecord componentannotations- the value for theannotationsrecord componentparameterAnnotations- the value for theparameterAnnotationsrecord component
-
-
Method Details
-
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. -
name
-
signature
-
parameterNames
Returns the value of theparameterNamesrecord component.- Returns:
- the value of the
parameterNamesrecord component
-
isStatic
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
parameterAnnotations
Returns the value of theparameterAnnotationsrecord component.- Returns:
- the value of the
parameterAnnotationsrecord component
-