Record Class ValueExpressionWriter.Written
java.lang.Object
java.lang.Record
io.micronaut.el.processor.writer.ValueExpressionWriter.Written
- Record Components:
type- The generated classdefinition- The definition, its expected type resolved
- Enclosing class:
ValueExpressionWriter
public static record ValueExpressionWriter.Written(io.micronaut.sourcegen.model.ClassDef type, ELExpressionDefinition definition)
extends Record
A written expression class, with its definition: inference fills the expected type in.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionWritten(io.micronaut.sourcegen.model.ClassDef type, ELExpressionDefinition 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
-