Record Class SymbolHarvester.HarvestResult
java.lang.Object
java.lang.Record
org.ek9lang.compiler.fuzz.SymbolHarvester.HarvestResult
- Enclosing class:
SymbolHarvester
public static record SymbolHarvester.HarvestResult(String moduleName, String source, List<TemplateProbeGenerator.HarvestedType> types, List<TemplateProbeGenerator.HarvestedFunction> functions)
extends Record
Result of harvesting: module name, source text, all harvested types and functions.
-
Constructor Summary
ConstructorsConstructorDescriptionHarvestResult(String moduleName, String source, List<TemplateProbeGenerator.HarvestedType> types, List<TemplateProbeGenerator.HarvestedFunction> functions) Creates an instance of aHarvestResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionsrecord component.final inthashCode()Returns a hash code value for this object.booleanCheck if any testable surfaces were found.Returns the value of themoduleNamerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
HarvestResult
public HarvestResult(String moduleName, String source, List<TemplateProbeGenerator.HarvestedType> types, List<TemplateProbeGenerator.HarvestedFunction> functions) Creates an instance of aHarvestResultrecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentsource- the value for thesourcerecord componenttypes- the value for thetypesrecord componentfunctions- the value for thefunctionsrecord component
-
-
Method Details
-
hasTestableSymbols
public boolean hasTestableSymbols()Check if any testable surfaces were found. -
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). -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
functions
Returns the value of thefunctionsrecord component.- Returns:
- the value of the
functionsrecord component
-