com.jeantessier.classreader
Class CollectorBase

java.lang.Object
  |
  +--com.jeantessier.classreader.VisitorBase
        |
        +--com.jeantessier.classreader.CollectorBase
All Implemented Interfaces:
Collector, java.util.EventListener, LoadListener, Visitor
Direct Known Subclasses:
ClassDependencyCollector, FeatureDependencyCollector

public abstract class CollectorBase
extends VisitorBase
implements Collector


Constructor Summary
CollectorBase()
           
CollectorBase(java.util.Collection collection)
           
 
Method Summary
protected  void Add(java.lang.Object obj)
           
 void BeginClassfile(LoadEvent event)
          The loader is starting on a new .class file.
 void BeginGroup(LoadEvent event)
          The loader is starting on a new group of files.
 void BeginSession(LoadEvent event)
           
 java.util.Collection Collection()
           
 void EndClassfile(LoadEvent event)
          The loader is finished loading a .class file.
 void EndGroup(LoadEvent event)
          The loader finished the group of files.
 void EndSession(LoadEvent event)
           
protected  void Remove(java.lang.Object obj)
           
 
Methods inherited from class com.jeantessier.classreader.VisitorBase
CurrentCount, RaiseCount, ResetCount, VisitClass_info, VisitClassfile, VisitCode_attribute, VisitConstantPool, VisitConstantValue_attribute, VisitCustom_attribute, VisitDeprecated_attribute, VisitDouble_info, VisitExceptionHandler, VisitExceptions_attribute, VisitField_info, VisitFieldRef_info, VisitFloat_info, VisitInnerClass, VisitInnerClasses_attribute, VisitInteger_info, VisitInterfaceMethodRef_info, VisitLineNumber, VisitLineNumberTable_attribute, VisitLocalVariable, VisitLocalVariableTable_attribute, VisitLong_info, VisitMethod_info, VisitMethodRef_info, VisitNameAndType_info, VisitSourceFile_attribute, VisitString_info, VisitSynthetic_attribute, VisitUTF8_info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jeantessier.classreader.Visitor
VisitClass_info, VisitClassfile, VisitCode_attribute, VisitConstantPool, VisitConstantValue_attribute, VisitCustom_attribute, VisitDeprecated_attribute, VisitDouble_info, VisitExceptionHandler, VisitExceptions_attribute, VisitField_info, VisitFieldRef_info, VisitFloat_info, VisitInnerClass, VisitInnerClasses_attribute, VisitInteger_info, VisitInterfaceMethodRef_info, VisitLineNumber, VisitLineNumberTable_attribute, VisitLocalVariable, VisitLocalVariableTable_attribute, VisitLong_info, VisitMethod_info, VisitMethodRef_info, VisitNameAndType_info, VisitSourceFile_attribute, VisitString_info, VisitSynthetic_attribute, VisitUTF8_info
 

Constructor Detail

CollectorBase

public CollectorBase()

CollectorBase

public CollectorBase(java.util.Collection collection)
Method Detail

Add

protected void Add(java.lang.Object obj)

Remove

protected void Remove(java.lang.Object obj)

Collection

public java.util.Collection Collection()
Specified by:
Collection in interface Collector

BeginSession

public void BeginSession(LoadEvent event)
Specified by:
BeginSession in interface LoadListener

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.

Specified by:
BeginGroup in interface LoadListener

BeginClassfile

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

The loader is starting on a new .class file.

The event's element attribute contains the name of the .class 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 classfile attributes is null.

Specified by:
BeginClassfile in interface LoadListener

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 attributes is null.

Specified by:
EndClassfile in interface LoadListener

EndGroup

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

The loader finished the 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.

Specified by:
EndGroup in interface LoadListener

EndSession

public void EndSession(LoadEvent event)
Specified by:
EndSession in interface LoadListener