Interface CompilationPhaseListener

All Superinterfaces:
Consumer<CompilationEvent>
All Known Implementing Classes:
ErrorDirectiveListener, GenusDirectiveListener, ImplementsDirectiveListener, NotResolvedDirectiveListener, ResolutionDirectiveListener, ResolvedDirectiveListener

public interface CompilationPhaseListener extends Consumer<CompilationEvent>
Register this event listener with the compiler to pick up on any warnings of errors during compilation. But this will be called at various phases during compilation. There may not always be errors or warnings. Use CompilableSource.getErrorListener() to check for errors/warnings.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(CompilationEvent compilationEvent)
    Once the compiler has processed (or attempted to process) a source file it will issue this event.

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details