Record Class MethodExpressionWriter.Written
java.lang.Object
java.lang.Record
io.micronaut.el.processor.writer.MethodExpressionWriter.Written
- Record Components:
type- The generated classdefinition- The definition, its return type resolved
- Enclosing class:
MethodExpressionWriter
public static record MethodExpressionWriter.Written(io.micronaut.sourcegen.model.ClassDef type, ELMethodExpressionDefinition definition)
extends Record
A written method expression class, with its definition: inference fills the return type in.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionWritten(io.micronaut.sourcegen.model.ClassDef type, ELMethodExpressionDefinition definition) Creates an instance of aWrittenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.io.micronaut.sourcegen.model.ClassDeftype()Returns the value of thetyperecord component.
-
Constructor Details
-
Written
Creates an instance of aWrittenrecord class.- Parameters:
type- the value for thetyperecord componentdefinition- the value for thedefinitionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
type
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-