Class GenerationReport
java.lang.Object
com.arc_e_tect.gradle.apionly.transcriberj.core.GenerationReport
What a generation run could not do in full, and what the specification could do
about it: the end-of-run report D14 asks for.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA generated method that throws instead of doing its work.static final recordA generated method that throws because no valid value could be generated for it: none exists, this generator cannot find one, or it reaches a construct no rule represents yet.static final recordSomething the specification could do better, and how.static final recordA parameter no valid value is generated for yet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondegraded()Every degraded method.voidRecords something worth saying about this generation that is not a problem.notes()What this generation had to say about itself.Every generated method that throws because no valid value could be generated for it.Every recommendation.The report as text, for a file and a build log.renderValidValues(String contract, String version) Every generated valid value, by class and location, as JSON: members sorted by name, no insignificant whitespace, and a final newline, so the same contract gives the same bytes.Every construct no generation rule has been decided for.Every parameter no valid value is generated for yet.warnings()Everything about the contract's design worth a second look.
-
Constructor Details
-
GenerationReport
public GenerationReport()Creates an empty report.
-
-
Method Details
-
noValidValue
Every generated method that throws because no valid value could be generated for it.- Returns:
- the entries, in the order they were written
-
unsupportedParameters
Every parameter no valid value is generated for yet.- Returns:
- the entries, in contract order
-
degraded
Every degraded method.- Returns:
- the entries, in the order they were written
-
recommendations
Every recommendation.- Returns:
- the entries, in the order they were made
-
undecided
Every construct no generation rule has been decided for.- Returns:
- the findings, in contract order
-
warnings
Everything about the contract's design worth a second look.- Returns:
- the warnings, in the order they were found
-
note
Records something worth saying about this generation that is not a problem.- Parameters:
note- the note
-
notes
What this generation had to say about itself.- Returns:
- the notes, in the order they were made
-
render
The report as text, for a file and a build log.- Parameters:
contract- the contract's nameversion- the contract's version- Returns:
- the text
-
renderValidValues
Every generated valid value, by class and location, as JSON: members sorted by name, no insignificant whitespace, and a final newline, so the same contract gives the same bytes.- Parameters:
contract- the contract's nameversion- the contract's version- Returns:
- the JSON text
-