Package | Description |
---|---|
org.revapi | |
org.revapi.query | |
org.revapi.simple |
Modifier and Type | Interface and Description |
---|---|
interface |
DifferenceTransform<T extends Element>
A difference transform may elect to transform certain kinds of differences into other kinds.
|
Modifier and Type | Method and Description |
---|---|
default <T extends Element> |
Element.as(Class<T> type)
Casts this element to the provided type.
|
<T extends Element> |
Element.iterateOverChildren(Class<T> resultType,
boolean recurse,
Filter<? super T> filter)
Similar to search methods but avoids the traversal over the whole forest.
|
<T extends Element> |
ElementForest.search(Class<T> resultType,
boolean recurse,
Filter<? super T> filter,
Element searchRoot)
Searches through the forest for elements of given type, potentially further filtering.
|
<T extends Element> |
Element.searchChildren(Class<T> resultType,
boolean recurse,
Filter<? super T> filter)
This method is functionally equivalent to
searchChildren(java.util.List, java.lang.Class, boolean,
org.revapi.query.Filter) but returns the result in a newly allocated list instance. |
<T extends Element> |
Element.searchChildren(List<T> results,
Class<T> resultType,
boolean recurse,
Filter<? super T> filter)
Recursively searches the children of this element for elements of given type, potentially applicable to given
filter.
|
Modifier and Type | Method and Description |
---|---|
Element |
Report.getNewElement() |
Element |
Report.getOldElement() |
Element |
Element.getParent() |
Modifier and Type | Method and Description |
---|---|
SortedSet<? extends Element> |
Element.getChildren() |
SortedSet<? extends Element> |
ElementForest.getRoots()
A sorted set of all root elements of the forest.
|
Comparator<? super Element> |
CorrespondenceComparatorDeducer.sortAndGetCorrespondenceComparator(List<Element> first,
List<Element> second)
Deduces the correspondence comparator and sorts the provided lists so that the comparator, when used to compare
the elements for the two lists mutually is consistent.
|
Modifier and Type | Method and Description |
---|---|
void |
DifferenceAnalyzer.beginAnalysis(Element oldElement,
Element newElement)
Called when the analysis of the two corresponding elements begins.
|
Report |
DifferenceAnalyzer.endAnalysis(Element oldElement,
Element newElement)
Called when the analysis of the two elements ends (i.e.
|
boolean |
DifferenceAnalyzer.isDescendRequired(Element oldElement,
Element newElement)
Tells whether the analyzer needs to descend "into" the two provided elements.
|
<T extends Element> |
ElementForest.search(Class<T> resultType,
boolean recurse,
Filter<? super T> filter,
Element searchRoot)
Searches through the forest for elements of given type, potentially further filtering.
|
void |
Element.setParent(Element parent)
Sets a new parent.
|
Report.Builder |
Report.Builder.withNew(Element element) |
Report.Builder |
Report.Builder.withOld(Element element) |
Modifier and Type | Method and Description |
---|---|
Comparator<? super Element> |
CorrespondenceComparatorDeducer.sortAndGetCorrespondenceComparator(List<Element> first,
List<Element> second)
Deduces the correspondence comparator and sorts the provided lists so that the comparator, when used to compare
the elements for the two lists mutually is consistent.
|
Comparator<? super Element> |
CorrespondenceComparatorDeducer.sortAndGetCorrespondenceComparator(List<Element> first,
List<Element> second)
Deduces the correspondence comparator and sorts the provided lists so that the comparator, when used to compare
the elements for the two lists mutually is consistent.
|
Constructor and Description |
---|
Report(Iterable<Difference> problems,
Element oldElement,
Element newElement) |
Modifier and Type | Class and Description |
---|---|
class |
DFSFilteringIterator<E extends Element>
Recursively walks an element forest in a depth-first manner leaving out elements not matching the optionally provided
filter.
|
Constructor and Description |
---|
DFSFilteringIterator(Iterator<? extends Element> rootIterator,
Class<? extends E> resultClass,
Filter<? super E> filter)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleDifferenceTransform<T extends Element> |
Modifier and Type | Class and Description |
---|---|
class |
SimpleElement
A simple implementation of the
Element interface intended to be extended. |
Modifier and Type | Method and Description |
---|---|
protected <T extends Element> |
SimpleElement.getDirectChildrenOfType(Class<T> type) |
<T extends Element> |
SimpleElement.iterateOverChildren(Class<T> resultType,
boolean recurse,
Filter<? super T> filter) |
<T extends Element> |
SimpleElementForest.search(Class<T> resultType,
boolean recurse,
Filter<? super T> filter,
Element root) |
<T extends Element> |
SimpleElementForest.search(List<T> results,
Class<T> resultType,
SortedSet<? extends Element> currentLevel,
boolean recurse,
Filter<? super T> filter) |
<T extends Element> |
SimpleElement.searchChildren(Class<T> resultType,
boolean recurse,
Filter<? super T> filter) |
<T extends Element> |
SimpleElement.searchChildren(List<T> results,
Class<T> resultType,
boolean recurse,
Filter<? super T> filter) |
Modifier and Type | Method and Description |
---|---|
Element |
SimpleElement.getParent() |
Modifier and Type | Method and Description |
---|---|
SortedSet<? extends Element> |
SimpleElement.getChildren()
This default implementation uses the
SimpleElement.newChildrenInstance() to initialize the children set and wraps
it in a private set implementation that automagically changes the parent of the elements based on the
membership. |
protected SortedSet<Element> |
SimpleElement.newChildrenInstance()
Override this method if you need some specialized instance of sorted set or want to do some custom pre-populating
or initialization of the children.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleElementFilter.applies(Element element) |
<T extends Element> |
SimpleElementForest.search(Class<T> resultType,
boolean recurse,
Filter<? super T> filter,
Element root) |
void |
SimpleElement.setParent(Element parent)
Sets the parent element.
|
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
SimpleElementForest.search(List<T> results,
Class<T> resultType,
SortedSet<? extends Element> currentLevel,
boolean recurse,
Filter<? super T> filter) |
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.