harpoon.Backend.Analysis
Class InitializerOrdering

java.lang.Object
  extended by harpoon.Backend.Analysis.InitializerOrdering

public class InitializerOrdering
extends Object

InitializerOrdering computes a topological sort of the static initializer call graph designed to ensure that classes are initialized in the correct order. Cycles in the initializer call graph will emit warnings; executing the static initializers in the order given is not guaranteed to produce the same results as executing them on demand in that case.

Version:
$Id: InitializerOrdering.java,v 1.6 2004/02/08 03:20:42 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
 List sorted
           
 
Constructor Summary
InitializerOrdering(ClassHierarchy ch, CallGraph cg)
          Creates a InitializerOrdering.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sorted

public final List sorted
Constructor Detail

InitializerOrdering

public InitializerOrdering(ClassHierarchy ch,
                           CallGraph cg)
Creates a InitializerOrdering.