dk.brics.string.diagnostics
Class NullDiagnosticsStrategy

java.lang.Object
  extended by dk.brics.string.diagnostics.NullDiagnosticsStrategy
All Implemented Interfaces:
DiagnosticsStrategy

public class NullDiagnosticsStrategy
extends Object
implements DiagnosticsStrategy

Diagnostics strategy that does nothing.

This can be used as base class for diagnostics strategies that only want to implement a few event responses. It is also used by StringAnalysis as the fallback diagnostics in case no strategy was specified.


Constructor Summary
NullDiagnosticsStrategy()
           
 
Method Summary
 void analysisStarted()
          Called when the analysis is about to start.
 void flowGraphCompleted(FlowGraph graph)
          Called when the flow graph has been completed.
 void intermediateCompleted(IntermediateCompletedEvent event)
          Called when the intermediate representation and liveness, alias, and reaching definitions analysis of it is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullDiagnosticsStrategy

public NullDiagnosticsStrategy()
Method Detail

analysisStarted

public void analysisStarted()
Description copied from interface: DiagnosticsStrategy
Called when the analysis is about to start.

Specified by:
analysisStarted in interface DiagnosticsStrategy

flowGraphCompleted

public void flowGraphCompleted(FlowGraph graph)
Description copied from interface: DiagnosticsStrategy
Called when the flow graph has been completed.

Specified by:
flowGraphCompleted in interface DiagnosticsStrategy
Parameters:
graph - the flow graph. Must not be modified.

intermediateCompleted

public void intermediateCompleted(IntermediateCompletedEvent event)
Description copied from interface: DiagnosticsStrategy
Called when the intermediate representation and liveness, alias, and reaching definitions analysis of it is complete. The arguments must not be modified.

Specified by:
intermediateCompleted in interface DiagnosticsStrategy
Parameters:
event - contains the relevant information for the event.


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.