Package io.sundr.builder
Class PathAwareTypedVisitor<V,P>
- java.lang.Object
-
- io.sundr.builder.PathAwareTypedVisitor<V,P>
-
-
Constructor Summary
Constructors Constructor Description PathAwareTypedVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgetParent(List<Object> path)Class<P>getParentType()Class<V>getType()<F> BooleanhasVisitMethodMatching(F target)Checks if the specified visitor has a visit method compatible with the specified fluent.voidvisit(List<Map.Entry<String,Object>> path, V element)voidvisit(V element)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.sundr.builder.Visitor
addRequirement, addRequirement, canVisit, getRequirement, hasItem, order
-
-
-
-
Method Detail
-
hasVisitMethodMatching
public <F> Boolean hasVisitMethodMatching(F target)
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.
-
-