adaptj.toolkits.printers
Class DefaultEventPrinter

java.lang.Object
  |
  +--adaptj.toolkits.Customizable
        |
        +--adaptj.toolkits.TimedCustomizable
              |
              +--adaptj.toolkits.TimedEventBoxApplicable
                    |
                    +--adaptj.toolkits.EventOperation
                          |
                          +--adaptj.toolkits.printers.DefaultEventPrinter
All Implemented Interfaces:
ICustomizable, IEventBoxApplicable, IInitializable, ITimedCustomizable
Direct Known Subclasses:
CallGraphPrinter, ExtendedEventPrinter, MethodPrinter

public class DefaultEventPrinter
extends EventOperation


Field Summary
protected  java.lang.String fileName
           
protected  java.io.PrintStream pw
           
 
Constructor Summary
DefaultEventPrinter(java.lang.String name, java.lang.String description)
           
DefaultEventPrinter(java.lang.String name, java.lang.String description, java.lang.String fileName)
           
 
Method Summary
 void displayHelp(HelpDisplayManager manager)
           
 void doApply(EventBox box)
           
 void doDone()
           
 void doInit()
           
 java.lang.String getOption(java.lang.String name)
           
 void printMethod(JVMPIMethod m)
           
 EventDependency[] registerEventDependencies()
           
 java.lang.String[] registerOperationDependencies()
           
 void setFileName(java.lang.String fileName)
           
 void setOption(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class adaptj.toolkits.EventOperation
doPreInit
 
Methods inherited from class adaptj.toolkits.TimedEventBoxApplicable
apply, done, doVerboseDone, doVerboseInit, doVerbosePreInit, init, preInit
 
Methods inherited from class adaptj.toolkits.TimedCustomizable
getTime, isTimed, setTimed, startTimer, stopTimer
 
Methods inherited from class adaptj.toolkits.Customizable
getDescription, getName, isEnabled, isVerbose, setEnabled, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface adaptj.toolkits.ICustomizable
getDescription, getName, isEnabled, isVerbose, setEnabled, setVerbose
 

Field Detail

fileName

protected java.lang.String fileName

pw

protected java.io.PrintStream pw
Constructor Detail

DefaultEventPrinter

public DefaultEventPrinter(java.lang.String name,
                           java.lang.String description)

DefaultEventPrinter

public DefaultEventPrinter(java.lang.String name,
                           java.lang.String description,
                           java.lang.String fileName)
Method Detail

setFileName

public void setFileName(java.lang.String fileName)

registerEventDependencies

public EventDependency[] registerEventDependencies()
Specified by:
registerEventDependencies in interface IEventBoxApplicable
Specified by:
registerEventDependencies in class TimedEventBoxApplicable

registerOperationDependencies

public java.lang.String[] registerOperationDependencies()
Specified by:
registerOperationDependencies in interface IEventBoxApplicable
Specified by:
registerOperationDependencies in class TimedEventBoxApplicable

doInit

public void doInit()
Overrides:
doInit in class EventOperation

doApply

public void doApply(EventBox box)
Specified by:
doApply in class TimedEventBoxApplicable

printMethod

public void printMethod(JVMPIMethod m)

doDone

public void doDone()
Overrides:
doDone in class EventOperation

setOption

public void setOption(java.lang.String name,
                      java.lang.String value)
Specified by:
setOption in interface ICustomizable
Overrides:
setOption in class TimedCustomizable

getOption

public java.lang.String getOption(java.lang.String name)
Specified by:
getOption in interface ICustomizable
Overrides:
getOption in class TimedCustomizable

displayHelp

public void displayHelp(HelpDisplayManager manager)
Specified by:
displayHelp in interface ICustomizable
Overrides:
displayHelp in class TimedCustomizable