Package org.sonar.plugins.jcl.api.checks
Interface InitContext
public interface InitContext
Context used to register checks.
-
Method Summary
Modifier and TypeMethodDescription<T extends JclTree>
voidregister(Class<T> clazz, BiConsumer<CheckContext, T> consumer) Register a check for a specific type of tree node.voidregisterLeaveFile(BiConsumer<CheckContext, JclTree> consumer) Register a check to be called after visiting all nodes in the file.
-
Method Details
-
register
Register a check for a specific type of tree node.- Parameters:
clazz- the class of the tree nodeconsumer- the consumer that will be called for each tree node of the specified type
-
registerLeaveFile
Register a check to be called after visiting all nodes in the file.- Parameters:
consumer- the consumer that will be called after the all nodes in the file are visited
-