cpptools
Class AbstractLogger

java.lang.Object
  extended by cpptools.AbstractLogger
All Implemented Interfaces:
EventHandler
Direct Known Subclasses:
AntLogger, ConsoleLogger

public abstract class AbstractLogger
extends java.lang.Object
implements EventHandler

Captures behaviours common to loggers.

Author:
Mathieu Champlon

Constructor Summary
AbstractLogger()
           
 
Method Summary
 void display(java.lang.String filename, int line, int column)
          Display a diagnostic.
 void finished(int parsed, int total)
          Notify an end event.
protected abstract  void log(java.lang.String message)
          Log a given message.
 void started()
          Notify a start event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cpptools.EventHandler
changed, error
 

Constructor Detail

AbstractLogger

public AbstractLogger()
Method Detail

started

public final void started()
Notify a start event.

Specified by:
started in interface EventHandler

finished

public final void finished(int parsed,
                           int total)
Notify an end event.

Specified by:
finished in interface EventHandler
Parameters:
parsed - number of files parsed
total - total number of files

log

protected abstract void log(java.lang.String message)
Log a given message.

Parameters:
message - the message

display

public final void display(java.lang.String filename,
                          int line,
                          int column)
Display a diagnostic.

Specified by:
display in interface EventHandler
Parameters:
filename - the file name
line - the line number
column - the column offset


Copyright © 2006-2007 null. All Rights Reserved.