Package org.revapi.basic
Class DifferencesTransform<E extends org.revapi.Element<E>>
- java.lang.Object
-
- org.revapi.basic.AbstractDifferenceReferringTransform<E>
-
- org.revapi.basic.DifferencesTransform<E>
-
- All Implemented Interfaces:
AutoCloseable
,org.revapi.configuration.Configurable
,org.revapi.DifferenceTransform<E>
- Direct Known Subclasses:
ClassificationTransform
,IgnoreDifferenceTransform
public class DifferencesTransform<E extends org.revapi.Element<E>> extends AbstractDifferenceReferringTransform<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DifferencesTransform.DifferenceRecipe
-
Field Summary
-
Fields inherited from class org.revapi.basic.AbstractDifferenceReferringTransform
analysisContext
-
-
Constructor Summary
Constructors Modifier Constructor Description DifferencesTransform()
protected
DifferencesTransform(String extensionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Reader
getJSONSchema()
protected com.fasterxml.jackson.databind.JsonNode
getRecipesConfigurationAndInitialize()
protected DifferenceMatchRecipe
newRecipe(com.fasterxml.jackson.databind.JsonNode node)
-
Methods inherited from class org.revapi.basic.AbstractDifferenceReferringTransform
endTraversal, getDifferenceCodePatterns, getExtensionId, initialize, startTraversal, tryTransform
-
-
-
-
Constructor Detail
-
DifferencesTransform
public DifferencesTransform()
-
DifferencesTransform
protected DifferencesTransform(String extensionId)
-
-
Method Detail
-
newRecipe
@Nonnull protected DifferenceMatchRecipe newRecipe(com.fasterxml.jackson.databind.JsonNode node) throws IllegalArgumentException
- Specified by:
newRecipe
in classAbstractDifferenceReferringTransform<E extends org.revapi.Element<E>>
- Throws:
IllegalArgumentException
-
close
public void close()
-
getRecipesConfigurationAndInitialize
protected com.fasterxml.jackson.databind.JsonNode getRecipesConfigurationAndInitialize()
- Overrides:
getRecipesConfigurationAndInitialize
in classAbstractDifferenceReferringTransform<E extends org.revapi.Element<E>>
- Returns:
- a list node where the difference recipes are stored
-
-