@FunctionalInterface public interface Visitor<T>
| Modifier and Type | Method and Description |
|---|---|
default <P> Visitor<T> |
addRequirement(Class<P> type,
Predicate<P> predicate) |
default Visitor<T> |
addRequirement(Predicate predicate) |
default <F> Boolean |
canVisit(List<Map.Entry<String,Object>> path,
F target) |
default Predicate<List<Map.Entry<String,Object>>> |
getRequirement() |
default Class<T> |
getType() |
default <I> Predicate<List<Map.Entry<String,Object>>> |
hasItem(Class<I> type,
Predicate<I> predicate) |
default <F> Boolean |
hasVisitMethodMatching(F target)
Checks if the specified visitor has a visit method compatible with the
specified fluent.
|
default int |
order() |
default void |
visit(List<Map.Entry<String,Object>> path,
T element) |
void |
visit(T element) |
void visit(T element)
default <I> Predicate<List<Map.Entry<String,Object>>> hasItem(Class<I> type, Predicate<I> predicate)
default <F> Boolean hasVisitMethodMatching(F target)
F - The type of the candidatetarget - The candidate to check if current visitor can visit.default int order()
Copyright © 2023. All rights reserved.