Record Class InvokedSignature
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.InvokedSignature
- Record Components:
parameterTypes- The generic parameter typesvarargs- Whether the last parameter takes varargs
-
Constructor Summary
ConstructorsConstructorDescriptionInvokedSignature(List<TypeDef> parameterTypes, boolean varargs) Creates an instance of aInvokedSignaturerecord 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.Returns the value of theparameterTypesrecord component.static @Nullable InvokedSignatureresolve(@Nullable ClassTypeDef owner, String methodName, List<TypeDef> parameterTypes, GenerationScope scope) The generic parameter types the invoked method declares, which the erased signature of the model does not carry.final StringtoString()Returns a string representation of this record class.booleanvarargs()Returns the value of thevarargsrecord component.
-
Constructor Details
-
InvokedSignature
Creates an instance of aInvokedSignaturerecord class.- Parameters:
parameterTypes- the value for theparameterTypesrecord componentvarargs- the value for thevarargsrecord component
-
-
Method Details
-
resolve
public static @Nullable InvokedSignature resolve(@Nullable ClassTypeDef owner, String methodName, List<TypeDef> parameterTypes, GenerationScope scope) The generic parameter types the invoked method declares, which the erased signature of the model does not carry. Resolved by loading the type, and failing that through the compiler.- Parameters:
owner- The type declaring the method, ornullmethodName- The method nameparameterTypes- The parameter types of the method in the model, which name the overloadscope- The scope of the file being written, which looks up a type the class loader lacks- Returns:
- The signature, or
nullwhere the method cannot be resolved
-
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. -
parameterTypes
Returns the value of theparameterTypesrecord component.- Returns:
- the value of the
parameterTypesrecord component
-
varargs
-