Package io.sundr.builder
Class PathAwareTypedVisitor<V,P>
java.lang.Object
io.sundr.builder.PathAwareTypedVisitor<V,P>
- All Implemented Interfaces:
Visitor<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the type of objects this visitor can handle.<F> BooleanhasVisitMethodMatching(F target) Checks if the specified visitor has a visit method compatible with the specified fluent.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, toString, wait, wait, waitMethods inherited from interface io.sundr.builder.Visitor
addRequirement, addRequirement, canVisit, getRequirement, hasItem, order
-
Constructor Details
-
PathAwareTypedVisitor
public PathAwareTypedVisitor()
-
-
Method Details
-
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. -
hasVisitMethodMatching
Checks if the specified visitor has a visit method compatible with the specified fluent.- Specified by:
hasVisitMethodMatchingin interfaceVisitor<V>- Type Parameters:
F- The type of the candidate- Parameters:
target- The candidate to check if current visitor can visit.- Returns:
- True if matching method was found.
-
getParent
-
getParentType
-
getType
Description copied from interface:VisitorGets the type of objects this visitor can handle. Uses reflection to determine the generic type parameter.
-