Interface IBaseVisitor
- All Known Subinterfaces:
IArchitectureVisitor
,ICoreVisitor
,ICppVisitor
,ICSharpVisitor
,IJavaVisitor
public interface IBaseVisitor
-
Method Summary
Modifier and TypeMethodDescriptionboolean
callElementClosures
(com.hello2morrow.sonargraph.core.api.model.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement> elementAccess) Invoke closures for the specified element access.void
Removes all closures added with the on**(Closure<?> closure) methodsvoid
visitChildren
(com.hello2morrow.sonargraph.core.api.model.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement> elementAccess) Trigger the visit process for the children of the specified element access.
-
Method Details
-
removeAllClosures
void removeAllClosures()Removes all closures added with the on**(Closure<?> closure) methods -
callElementClosures
boolean callElementClosures(com.hello2morrow.sonargraph.core.api.model.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement> elementAccess) Invoke closures for the specified element access.- Parameters:
elementAccess
- the element access for which to invoke the corresponding closures.- Returns:
- 'true' if at least one matching closure has been executed and 'false' otherwise.
-
visitChildren
void visitChildren(com.hello2morrow.sonargraph.core.api.model.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement> elementAccess) Trigger the visit process for the children of the specified element access.- Parameters:
elementAccess
- the element access.
-