Interface InitContext


public interface InitContext
Context used to register checks.
  • Method Details

    • register

      <T extends JclTree> void register(Class<T> clazz, BiConsumer<CheckContext,T> consumer)
      Register a check for a specific type of tree node.
      Parameters:
      clazz - the class of the tree node
      consumer - the consumer that will be called for each tree node of the specified type
    • registerLeaveFile

      void registerLeaveFile(BiConsumer<CheckContext,JclTree> consumer)
      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