public abstract class AbstractSuggestionsBuilder extends Object implements BuildTimeReporter.SuggestionsBuilder
BuildTimeReporter.SuggestionsBuilder
s that abstracts the walking of the
differences and lets the subclasses only implement simple methods to output the suggestions in the given format.Constructor and Description |
---|
AbstractSuggestionsBuilder() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
appendDifferenceField(StringBuilder sb,
String key,
String value) |
protected abstract void |
appendDifferenceFieldSeparator(StringBuilder sb) |
String |
build(List<org.revapi.Report> allProblems,
BuildTimeReporter.SuggestionBuilderContext context) |
protected abstract void |
endDifference(StringBuilder sb) |
protected abstract void |
endOptionalAttachmentsInComment(StringBuilder sb) |
protected abstract void |
epilogue(StringBuilder sb) |
protected abstract void |
prologue(StringBuilder sb) |
protected abstract void |
startDifference(StringBuilder sb) |
protected abstract void |
startOptionalAttachmentsInComment(StringBuilder sb,
String text) |
protected abstract void appendDifferenceField(StringBuilder sb, String key, String value)
protected abstract void appendDifferenceFieldSeparator(StringBuilder sb)
protected abstract void prologue(StringBuilder sb)
protected abstract void startDifference(StringBuilder sb)
protected abstract void endDifference(StringBuilder sb)
protected abstract void startOptionalAttachmentsInComment(StringBuilder sb, String text)
protected abstract void endOptionalAttachmentsInComment(StringBuilder sb)
protected abstract void epilogue(StringBuilder sb)
public String build(List<org.revapi.Report> allProblems, BuildTimeReporter.SuggestionBuilderContext context)
build
in interface BuildTimeReporter.SuggestionsBuilder
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.