Package io.sundr.model.repo
Class MethodCallCollector
java.lang.Object
io.sundr.model.repo.MethodCallCollector
- All Implemented Interfaces:
Visitor<MethodCallFluent<?>>
Visitor that collects all MethodCall objects from a visitable AST structure.
The visitor pattern automatically traverses the entire AST, so this just collects
every MethodCall it encounters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the collected method calls (useful for reusing the collector)Get all collected method callsvoidvisit(MethodCallFluent<?> methodCallFluent) 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, getType, hasItem, hasVisitMethodMatching, order, visit
-
Constructor Details
-
MethodCallCollector
public MethodCallCollector()
-
-
Method Details
-
visit
- Specified by:
visitin interfaceVisitor<MethodCallFluent<?>>
-
getMethodCalls
Get all collected method calls -
clear
public void clear()Clear the collected method calls (useful for reusing the collector)
-