com.jeantessier.dependencyfinder.cli
Class VerboseListener

java.lang.Object
  |
  +--com.jeantessier.dependencyfinder.VerboseListenerBase
        |
        +--com.jeantessier.dependencyfinder.cli.VerboseListener
All Implemented Interfaces:
DependencyListener, java.util.EventListener, LoadListener, MetricsListener

public class VerboseListener
extends VerboseListenerBase
implements DependencyListener, MetricsListener


Constructor Summary
VerboseListener()
           
 
Method Summary
 void BeginClass(DependencyEvent event)
           
 void BeginClass(MetricsEvent event)
           
 void BeginGroup(LoadEvent event)
          The loader is starting on a new group of files.
 void BeginMethod(MetricsEvent event)
           
 void BeginSession(DependencyEvent event)
           
 void BeginSession(LoadEvent event)
           
 void BeginSession(MetricsEvent event)
           
 void Close()
           
 void Dependency(DependencyEvent event)
           
 void EndClass(DependencyEvent event)
           
 void EndClass(MetricsEvent event)
           
 void EndClassfile(LoadEvent event)
          The loader is finished loading a .class file.
 void EndFile(LoadEvent event)
          The loader is finished with a file.
 void EndMethod(MetricsEvent event)
           
 void EndSession(DependencyEvent event)
           
 void EndSession(MetricsEvent event)
           
 void Print(java.lang.String x)
           
 java.io.PrintWriter Writer()
           
 void Writer(java.io.OutputStream stream)
           
 void Writer(java.io.PrintWriter writer)
           
 void Writer(java.io.Writer writer)
           
 
Methods inherited from class com.jeantessier.dependencyfinder.VerboseListenerBase
BeginClassfile, BeginFile, ClassCount, CurrentGroup, EndGroup, EndSession, RatioIndicator, VisitedFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerboseListener

public VerboseListener()
Method Detail

Writer

public java.io.PrintWriter Writer()

Writer

public void Writer(java.io.OutputStream stream)

Writer

public void Writer(java.io.Writer writer)

Writer

public void Writer(java.io.PrintWriter writer)

Close

public void Close()

Print

public void Print(java.lang.String x)

BeginSession

public void BeginSession(LoadEvent event)
Overrides:
BeginSession in class VerboseListenerBase

BeginGroup

public void BeginGroup(LoadEvent event)
Description copied from interface: LoadListener

The loader is starting on a new group of files. For example, this can be a new JAR file or a collection of loose .class files.

The event's filename attribute points to the source or the group of files, such as the JAR file's name or the root directory of the loose files.

The element and classfile attributes are null.

Overrides:
BeginGroup in class VerboseListenerBase

EndClassfile

public void EndClassfile(LoadEvent event)
Description copied from interface: LoadListener

The loader is finished loading a .class file.

The event's classfile attribute contains the newly loaded Classfile instance from the .class file.

The event's filename attribute points to the group of files that contains the current file. For example, the JAR file's name or the root directory of loose files.

The element attribute is null.

Overrides:
EndClassfile in class VerboseListenerBase

EndFile

public void EndFile(LoadEvent event)
Description copied from interface: LoadListener

The loader is finished with a file.

The event's element attribute contains the name of the file being processed.

The event's filename attribute points to the group of files that contains the current file. For example, the JAR file's name or the root directory of loose files.

The event's classfile attribute may contains a newly loaded Classfile instance from the file.

Overrides:
EndFile in class VerboseListenerBase

BeginSession

public void BeginSession(DependencyEvent event)
Specified by:
BeginSession in interface DependencyListener

BeginClass

public void BeginClass(DependencyEvent event)
Specified by:
BeginClass in interface DependencyListener

Dependency

public void Dependency(DependencyEvent event)
Specified by:
Dependency in interface DependencyListener

EndClass

public void EndClass(DependencyEvent event)
Specified by:
EndClass in interface DependencyListener

EndSession

public void EndSession(DependencyEvent event)
Specified by:
EndSession in interface DependencyListener

BeginSession

public void BeginSession(MetricsEvent event)
Specified by:
BeginSession in interface MetricsListener

BeginClass

public void BeginClass(MetricsEvent event)
Specified by:
BeginClass in interface MetricsListener

BeginMethod

public void BeginMethod(MetricsEvent event)
Specified by:
BeginMethod in interface MetricsListener

EndMethod

public void EndMethod(MetricsEvent event)
Specified by:
EndMethod in interface MetricsListener

EndClass

public void EndClass(MetricsEvent event)
Specified by:
EndClass in interface MetricsListener

EndSession

public void EndSession(MetricsEvent event)
Specified by:
EndSession in interface MetricsListener