Record Class HarvestedType
java.lang.Object
java.lang.Record
org.ek9lang.compiler.fuzz.HarvestedType
public record HarvestedType(String name, SymbolGenus genus, boolean isAbstract, List<HarvestedMethod> methods, List<HarvestedMethod> operators, List<HarvestedMethod> constructors, List<HarvestedField> fields, String superTypeName, boolean isOpen, List<String> traitNames, boolean isGeneric, List<String> typeParameterNames, boolean isDispatcher)
extends Record
Harvested type information from a compiled template.
Shared contract between TemplateProbeGenerator, TemplateEnrichmentGenerator,
SymbolHarvester, and UserTestGenerator.
-
Constructor Summary
ConstructorsConstructorDescriptionHarvestedType(String name, SymbolGenus genus, boolean isAbstract, List<HarvestedMethod> methods, List<HarvestedMethod> operators, List<HarvestedMethod> constructors, List<HarvestedField> fields, String superTypeName, boolean isOpen, List<String> traitNames, boolean isGeneric, List<String> typeParameterNames, boolean isDispatcher) Creates an instance of aHarvestedTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstructorsrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.genus()Returns the value of thegenusrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAbstractrecord component.booleanReturns the value of theisDispatcherrecord component.booleanReturns the value of theisGenericrecord component.booleanisOpen()Returns the value of theisOpenrecord component.methods()Returns the value of themethodsrecord component.name()Returns the value of thenamerecord component.Returns the value of theoperatorsrecord component.Returns the value of thesuperTypeNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetraitNamesrecord component.Returns the value of thetypeParameterNamesrecord component.
-
Constructor Details
-
HarvestedType
public HarvestedType(String name, SymbolGenus genus, boolean isAbstract, List<HarvestedMethod> methods, List<HarvestedMethod> operators, List<HarvestedMethod> constructors, List<HarvestedField> fields, String superTypeName, boolean isOpen, List<String> traitNames, boolean isGeneric, List<String> typeParameterNames, boolean isDispatcher) Creates an instance of aHarvestedTyperecord class.- Parameters:
name- the value for thenamerecord componentgenus- the value for thegenusrecord componentisAbstract- the value for theisAbstractrecord componentmethods- the value for themethodsrecord componentoperators- the value for theoperatorsrecord componentconstructors- the value for theconstructorsrecord componentfields- the value for thefieldsrecord componentsuperTypeName- the value for thesuperTypeNamerecord componentisOpen- the value for theisOpenrecord componenttraitNames- the value for thetraitNamesrecord componentisGeneric- the value for theisGenericrecord componenttypeParameterNames- the value for thetypeParameterNamesrecord componentisDispatcher- the value for theisDispatcherrecord 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
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
genus
Returns the value of thegenusrecord component.- Returns:
- the value of the
genusrecord component
-
isAbstract
public boolean isAbstract()Returns the value of theisAbstractrecord component.- Returns:
- the value of the
isAbstractrecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-
operators
Returns the value of theoperatorsrecord component.- Returns:
- the value of the
operatorsrecord component
-
constructors
Returns the value of theconstructorsrecord component.- Returns:
- the value of the
constructorsrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
superTypeName
Returns the value of thesuperTypeNamerecord component.- Returns:
- the value of the
superTypeNamerecord component
-
isOpen
public boolean isOpen()Returns the value of theisOpenrecord component.- Returns:
- the value of the
isOpenrecord component
-
traitNames
-
isGeneric
public boolean isGeneric()Returns the value of theisGenericrecord component.- Returns:
- the value of the
isGenericrecord component
-
typeParameterNames
-
isDispatcher
public boolean isDispatcher()Returns the value of theisDispatcherrecord component.- Returns:
- the value of the
isDispatcherrecord component
-