Package lib

Interface Logger

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Logger
Functional Interface that represents the Logger of the library. The target method is log(String) which is used to define how to log a String. The other default methods used the target one to log the classes that the library construct during a specific analysis.
  • Field Details

    • STOP_ANALYZING_PROJECT

      static final String STOP_ANALYZING_PROJECT
      Message to sent to stop project analysis
      See Also:
  • Method Details

    • log

      void log(String message)
      Target method of the Functional Interface. It must be implemented to specify how to log a String, which represents the message that has to be logged.
      Parameters:
      message - - the message to log
    • log

      default void log(MethodInfo method)
      Log a json representing a MethodInfo. It uses DTOs and DTOParser to create the json from the param. Before the json log also an identifier represented by a value of the Logger.CodeElementFound to make understandable what type of object is logged.
      Parameters:
      method - - the method to log
    • log

      default void log(FieldInfo field)
      Log a json representing a FieldInfo. It uses DTOs and DTOParser to create the json from the param. Before the json log also an identifier represented by a value of the Logger.CodeElementFound to make understandable what type of object is logged.
      Parameters:
      field - - the field to log
    • log

      default void log(InterfaceReport interfaceReport)
      Log a json representing a InterfaceReport. It uses DTOs and DTOParser to create the json from the param. Before the json log also an identifier represented by a value of the Logger.CodeElementFound to make understandable what type of object is logged.
      Parameters:
      interfaceReport - - the interface report to log
    • log

      default void log(ClassReport classReport)
      Log a json representing a ClassReport. It uses DTOs and DTOParser to create the json from the param. Before the json log also an identifier represented by a value of the Logger.CodeElementFound to make understandable what type of object is logged.
      Parameters:
      classReport - - the class report to log
    • log

      default void log(PackageReport packageReport)
      Log a json representing a PackageReport. It uses DTOs and DTOParser to create the json from the param. Before the json log also an identifier represented by a value of the Logger.CodeElementFound to make understandable what type of object is logged.
      Parameters:
      packageReport - - the package report to log
    • log

      default void log(ProjectReport projectReport)
      Log a json representing a ProjectReport. It uses DTOs and DTOParser to create the json from the param. Before the json log also an identifier represented by a value of the Logger.CodeElementFound to make understandable what type of object is logged.
      Parameters:
      projectReport - - the project report to log
    • logError

      default void logError(String errorMessage)
      Log an error message.
      Parameters:
      errorMessage - - the message to log
    • logInterrupt

      default void logInterrupt(String interruptMessage)
      Log an user interrupt message.
      Parameters:
      interruptMessage - - the message to log