Class AbstractDifferenceReferringTransform<E extends org.revapi.Element<E>>
java.lang.Object
org.revapi.basic.AbstractDifferenceReferringTransform<E>
- All Implemented Interfaces:
AutoCloseable
,org.revapi.configuration.Configurable
,org.revapi.DifferenceTransform<E>
- Direct Known Subclasses:
DifferencesTransform
public abstract class AbstractDifferenceReferringTransform<E extends org.revapi.Element<E>>
extends Object
implements org.revapi.DifferenceTransform<E>
- Since:
- 0.1
- Author:
- Lukas Krejci
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.revapi.DifferenceTransform
org.revapi.DifferenceTransform.TraversalTracker<E extends org.revapi.Element<E>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endTraversal
(org.revapi.DifferenceTransform.TraversalTracker<?> tracker) Pattern[]
protected com.fasterxml.jackson.databind.JsonNode
final void
initialize
(org.revapi.AnalysisContext analysisContext) protected abstract DifferenceMatchRecipe
newRecipe
(com.fasterxml.jackson.databind.JsonNode configNode) <X extends org.revapi.Element<X>>
Optional<org.revapi.DifferenceTransform.TraversalTracker<X>> startTraversal
(org.revapi.ApiAnalyzer<X> apiAnalyzer, org.revapi.ArchiveAnalyzer<X> oldArchiveAnalyzer, org.revapi.ArchiveAnalyzer<X> newArchiveAnalyzer) org.revapi.TransformationResult
tryTransform
(E oldElement, E newElement, org.revapi.Difference difference) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface org.revapi.configuration.Configurable
getJSONSchema
Methods inherited from interface org.revapi.DifferenceTransform
transform
-
Field Details
-
analysisContext
protected org.revapi.AnalysisContext analysisContext
-
-
Constructor Details
-
AbstractDifferenceReferringTransform
-
-
Method Details
-
getExtensionId
-
getDifferenceCodePatterns
-
getDifferenceCodePredicates
-
getRecipesConfigurationAndInitialize
protected com.fasterxml.jackson.databind.JsonNode getRecipesConfigurationAndInitialize()- Returns:
- a list node where the difference recipes are stored
-
newRecipe
protected abstract DifferenceMatchRecipe newRecipe(com.fasterxml.jackson.databind.JsonNode configNode) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
initialize
- Specified by:
initialize
in interfaceorg.revapi.configuration.Configurable
-
tryTransform
-
startTraversal
public <X extends org.revapi.Element<X>> Optional<org.revapi.DifferenceTransform.TraversalTracker<X>> startTraversal(org.revapi.ApiAnalyzer<X> apiAnalyzer, org.revapi.ArchiveAnalyzer<X> oldArchiveAnalyzer, org.revapi.ArchiveAnalyzer<X> newArchiveAnalyzer) -
endTraversal
-