Package io.sundr.builder
Class VisitorWiretap<T>
java.lang.Object
io.sundr.builder.VisitorWiretap<T>
- All Implemented Interfaces:
Visitor<T>
-
Method Summary
Modifier and TypeMethodDescription<F> Booleanstatic <T> VisitorWiretap<T>create(Visitor<T> visitor, Collection<VisitorListener> listeners) Gets the requirement predicate for this visitor.getType()Gets the type of objects this visitor can handle.intorder()Gets the processing order for this visitor.toString()voidVisits the specified element with path information.voidVisits the specified element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sundr.builder.Visitor
addRequirement, addRequirement, hasItem, hasVisitMethodMatching
-
Method Details
-
create
public static <T> VisitorWiretap<T> create(Visitor<T> visitor, Collection<VisitorListener> listeners) -
getRequirement
Description copied from interface:VisitorGets the requirement predicate for this visitor. The predicate determines whether this visitor should process a given path.- Specified by:
getRequirementin interfaceVisitor<T>- Returns:
- a predicate that evaluates to true if this visitor should process the path
-
canVisit
-
order
public int order()Description copied from interface:VisitorGets the processing order for this visitor. Visitors with lower order values are processed first. -
visit
Description copied from interface:VisitorVisits the specified element. -
visit
Description copied from interface:VisitorVisits the specified element with path information. By default, this delegates to the simple visit method. -
getType
Description copied from interface:VisitorGets the type of objects this visitor can handle. Uses reflection to determine the generic type parameter. -
toString
-