Interface IJavaVisitor
- All Superinterfaces:
IBaseVisitor
,ICoreVisitor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onField
(groovy.lang.Closure<?> closure) Call the given closure on fields.void
onJavaClassFile
(groovy.lang.Closure<?> closure) void
onJavaSyntheticType
(groovy.lang.Closure<?> closure) void
onLogicalModule
(groovy.lang.Closure<?> closure) Call the given closure on logical modules.void
onLogicalModuleNamespace
(groovy.lang.Closure<?> closure) Call the given closure on logical namespaces with module scope.void
onLogicalSystemNamespace
(groovy.lang.Closure<?> closure) Call the given closure on logical namespaces with system scope.void
onMethod
(groovy.lang.Closure<?> closure) Call the given closure on member functions.void
onModule
(groovy.lang.Closure<?> closure) Call the given closure on modules.void
onRoutine
(groovy.lang.Closure<?> closure) Call the given closure on routines (functions and member functions).void
onSourceFile
(groovy.lang.Closure<?> closure) Call the given closure for all source files.void
onType
(groovy.lang.Closure<?> closure) Call the given closure on types.Methods inherited from interface com.hello2morrow.sonargraph.core.api.controller.IBaseVisitor
callElementClosures, removeAllClosures, visitChildren
Methods inherited from interface com.hello2morrow.sonargraph.core.api.controller.ICoreVisitor
onDirectory, onDirectoryFragment, onExternal, onExternalElementContainer, onGenericProgrammingElement, onLogicalExternal, onLogicalModuleProgrammingElement, onLogicalSystem, onLogicalSystemProgrammingElement, onNamespaceFragment, onProgrammingElement, onRootDirectory
-
Method Details
-
onField
@ClosureParameterType(parameterType=IJavaFieldAccess.class) void onField(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on fields.- Specified by:
onField
in interfaceICoreVisitor
-
onMethod
@ClosureParameterType(parameterType=IJavaMethodAccess.class) void onMethod(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on member functions.- Specified by:
onMethod
in interfaceICoreVisitor
-
onRoutine
@ClosureParameterType(parameterType=IJavaMethodAccess.class) void onRoutine(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on routines (functions and member functions).- Specified by:
onRoutine
in interfaceICoreVisitor
-
onType
@ClosureParameterType(parameterType=IJavaTypeAccess.class) void onType(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on types.- Specified by:
onType
in interfaceICoreVisitor
-
onJavaSyntheticType
@ClosureParameterType(parameterType=IJavaSyntheticTypeAccess.class) void onJavaSyntheticType(groovy.lang.Closure<?> closure) -
onSourceFile
@ClosureParameterType(parameterType=IJavaSourceFileAccess.class) void onSourceFile(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure for all source files.- Specified by:
onSourceFile
in interfaceICoreVisitor
-
onJavaClassFile
@ClosureParameterType(parameterType=IJavaClassFileAccess.class) void onJavaClassFile(groovy.lang.Closure<?> closure) -
onModule
@ClosureParameterType(parameterType=IJavaModuleAccess.class) void onModule(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on modules.- Specified by:
onModule
in interfaceICoreVisitor
-
onLogicalSystemNamespace
@ClosureParameterType(parameterType=IJavaLogicalPackageAccess.class) void onLogicalSystemNamespace(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on logical namespaces with system scope.- Specified by:
onLogicalSystemNamespace
in interfaceICoreVisitor
-
onLogicalModuleNamespace
@ClosureParameterType(parameterType=IJavaLogicalPackageAccess.class) void onLogicalModuleNamespace(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on logical namespaces with module scope.- Specified by:
onLogicalModuleNamespace
in interfaceICoreVisitor
-
onLogicalModule
@ClosureParameterType(parameterType=IJavaLogicalModuleAccess.class) void onLogicalModule(groovy.lang.Closure<?> closure) Description copied from interface:ICoreVisitor
Call the given closure on logical modules.- Specified by:
onLogicalModule
in interfaceICoreVisitor
-