Record Class ClassFileParameterAnnotations.PrivateField
java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ClassFileParameterAnnotations.PrivateField
- Record Components:
name- The field namesignature- Its generic signature, or its descriptor when it has noneisStatic- Whether it is staticisFinal- Whether it is finalconstantValue- ItsConstantValue, if anyannotations- The annotations on the fieldtypeAnnotations- The type annotations on its type
- Enclosing class:
ClassFileParameterAnnotations
public static record ClassFileParameterAnnotations.PrivateField(String name, Signature signature, boolean isStatic, boolean isFinal, @Nullable Object constantValue, List<ClassFileParameterAnnotations.Annotation> annotations, List<ClassFileParameterAnnotations.Annotation> typeAnnotations)
extends Record
A private field the compiler did not enter.
-
Constructor Summary
ConstructorsConstructorDescriptionPrivateField(String name, Signature signature, boolean isStatic, boolean isFinal, @Nullable Object constantValue, List<ClassFileParameterAnnotations.Annotation> annotations, List<ClassFileParameterAnnotations.Annotation> typeAnnotations) Creates an instance of aPrivateFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.@Nullable ObjectReturns the value of theconstantValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFinal()Returns the value of theisFinalrecord component.booleanisStatic()Returns the value of theisStaticrecord component.name()Returns the value of thenamerecord component.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeAnnotationsrecord component.
-
Constructor Details
-
PrivateField
public PrivateField(String name, Signature signature, boolean isStatic, boolean isFinal, @Nullable Object constantValue, List<ClassFileParameterAnnotations.Annotation> annotations, List<ClassFileParameterAnnotations.Annotation> typeAnnotations) Creates an instance of aPrivateFieldrecord class.- Parameters:
name- the value for thenamerecord componentsignature- the value for thesignaturerecord componentisStatic- the value for theisStaticrecord componentisFinal- the value for theisFinalrecord componentconstantValue- the value for theconstantValuerecord componentannotations- the value for theannotationsrecord componenttypeAnnotations- the value for thetypeAnnotationsrecord 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
-
isStatic
-
isFinal
-
constantValue
Returns the value of theconstantValuerecord component.- Returns:
- the value of the
constantValuerecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
typeAnnotations
Returns the value of thetypeAnnotationsrecord component.- Returns:
- the value of the
typeAnnotationsrecord component
-