Package io.sundr.builder
Class DelegatingVisitor<T>
java.lang.Object
io.sundr.builder.DelegatingVisitor<T>
- Type Parameters:
T- the type of objects this visitor can visit
- All Implemented Interfaces:
Visitor<T>
A visitor implementation that delegates all operations to another visitor.
This class allows wrapping or proxying visitor behavior while maintaining
the same visitor interface.
-
Method Summary
Modifier and TypeMethodDescriptionGets 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, canVisit, hasItem, hasVisitMethodMatching
-
Method Details
-
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
-
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
-