Interface ICoreVisitor
- All Superinterfaces:
IBaseVisitor
- All Known Subinterfaces:
ICppVisitor,ICSharpVisitor,IJavaVisitor
Visitor interface for language agnostic scripts.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDirectory(groovy.lang.Closure<?> closure) Call the given closure on directories.voidonDirectoryFragment(groovy.lang.Closure<?> closure) Call the given closure on directory fragments.voidonExternal(groovy.lang.Closure<?> closure) Call the given closure on external root nodes.voidonExternalElementContainer(groovy.lang.Closure<?> closure) Call the given closure on external element containers.voidonField(groovy.lang.Closure<?> closure) Call the given closure on fields.voidonGenericProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on any generic programming element.voidonLogicalExternal(groovy.lang.Closure<?> closure) Call the given closure on the logical external root nodes.voidonLogicalModule(groovy.lang.Closure<?> closure) Call the given closure on logical modules.voidonLogicalModuleNamespace(groovy.lang.Closure<?> closure) Call the given closure on logical namespaces with module scope.voidonLogicalModuleProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on logical programming elements with module scope.voidonLogicalSystem(groovy.lang.Closure<?> closure) Call the given closure on the logical system root.voidonLogicalSystemNamespace(groovy.lang.Closure<?> closure) Call the given closure on logical namespaces with system scope.voidonLogicalSystemProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on logical programming elements with system scope.voidonMethod(groovy.lang.Closure<?> closure) Call the given closure on member functions.voidonModule(groovy.lang.Closure<?> closure) Call the given closure on modules.voidonNamespaceFragment(groovy.lang.Closure<?> closure) Call the given closure on namespace fragment.voidonProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on any programming element.voidonRootDirectory(groovy.lang.Closure<?> closure) Call the given closure on root directories.voidonRoutine(groovy.lang.Closure<?> closure) Call the given closure on routines (functions and member functions).voidonSourceFile(groovy.lang.Closure<?> closure) Call the given closure for all source files.voidonType(groovy.lang.Closure<?> closure) Call the given closure on types.Methods inherited from interface com.hello2morrow.sonargraph.core.api.controller.IBaseVisitor
callElementClosures, removeAllClosures, visitChildren
-
Method Details
-
onField
@ClosureParameterType(parameterType=IFieldAccess.class) void onField(groovy.lang.Closure<?> closure) Call the given closure on fields. -
onMethod
@ClosureParameterType(parameterType=IMethodAccess.class) void onMethod(groovy.lang.Closure<?> closure) Call the given closure on member functions. -
onRoutine
@ClosureParameterType(parameterType=IRoutineAccess.class) void onRoutine(groovy.lang.Closure<?> closure) Call the given closure on routines (functions and member functions). -
onType
Call the given closure on types. -
onProgrammingElement
@ClosureParameterType(parameterType=IProgrammingElementAccess.class) void onProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on any programming element. -
onGenericProgrammingElement
@ClosureParameterType(parameterType=IPluginProgrammingElementAccess.class) void onGenericProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on any generic programming element. -
onSourceFile
@ClosureParameterType(parameterType=ISourceFileAccess.class) void onSourceFile(groovy.lang.Closure<?> closure) Call the given closure for all source files. -
onDirectory
@ClosureParameterType(parameterType=IDirectoryAccess.class) void onDirectory(groovy.lang.Closure<?> closure) Call the given closure on directories. -
onDirectoryFragment
@ClosureParameterType(parameterType=IDirectoryAccess.class) void onDirectoryFragment(groovy.lang.Closure<?> closure) Call the given closure on directory fragments. -
onRootDirectory
@ClosureParameterType(parameterType=IDirectoryAccess.class) void onRootDirectory(groovy.lang.Closure<?> closure) Call the given closure on root directories. -
onModule
@ClosureParameterType(parameterType=IModuleAccess.class) void onModule(groovy.lang.Closure<?> closure) Call the given closure on modules. -
onExternal
@ClosureParameterType(parameterType=IExternalAccess.class) void onExternal(groovy.lang.Closure<?> closure) Call the given closure on external root nodes. -
onExternalElementContainer
@ClosureParameterType(parameterType=com.hello2morrow.sonargraph.core.api.model.ExternalElementContainerAccess.class) void onExternalElementContainer(groovy.lang.Closure<?> closure) Call the given closure on external element containers. -
onNamespaceFragment
@ClosureParameterType(parameterType=INamespaceFragmentAccess.class) void onNamespaceFragment(groovy.lang.Closure<?> closure) Call the given closure on namespace fragment. -
onLogicalModuleNamespace
@ClosureParameterType(parameterType=ILogicalNamespaceAccess.class) void onLogicalModuleNamespace(groovy.lang.Closure<?> closure) Call the given closure on logical namespaces with module scope. -
onLogicalSystemNamespace
@ClosureParameterType(parameterType=ILogicalNamespaceAccess.class) void onLogicalSystemNamespace(groovy.lang.Closure<?> closure) Call the given closure on logical namespaces with system scope. -
onLogicalSystemProgrammingElement
@ClosureParameterType(parameterType=ILogicalProgrammingElementAccess.class) void onLogicalSystemProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on logical programming elements with system scope. -
onLogicalModuleProgrammingElement
@ClosureParameterType(parameterType=ILogicalProgrammingElementAccess.class) void onLogicalModuleProgrammingElement(groovy.lang.Closure<?> closure) Call the given closure on logical programming elements with module scope. -
onLogicalModule
@ClosureParameterType(parameterType=ILogicalModuleAccess.class) void onLogicalModule(groovy.lang.Closure<?> closure) Call the given closure on logical modules. -
onLogicalSystem
@ClosureParameterType(parameterType=ILogicalSystemAccess.class) void onLogicalSystem(groovy.lang.Closure<?> closure) Call the given closure on the logical system root. -
onLogicalExternal
@ClosureParameterType(parameterType=ILogicalExternalAccess.class) void onLogicalExternal(groovy.lang.Closure<?> closure) Call the given closure on the logical external root nodes.
-