< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/util/Dependencies.java

Print this page




  74     protected Dependencies(Context context) {
  75         context.put(dependenciesKey, this);
  76     }
  77 
  78     /**
  79      * Push a new completion node on the stack.
  80      */
  81     abstract public void push(ClassSymbol s, CompletionCause phase);
  82 
  83     /**
  84      * Remove current dependency node from the stack.
  85      */
  86     abstract public void pop();
  87 
  88     public enum CompletionCause implements GraphUtils.DependencyKind {
  89         CLASS_READER,
  90         HEADER_PHASE,
  91         HIERARCHY_PHASE,
  92         IMPORTS_PHASE,
  93         MEMBER_ENTER,

  94         MEMBERS_PHASE,
  95         OTHER;
  96     }
  97 
  98     /**
  99      * This class creates a graph of all dependencies as symbols are completed;
 100      * when compilation finishes, the resulting dependency graph is then dumped
 101      * onto a dot file. Several options are provided to customize the output of the graph.
 102      */
 103     public static class GraphDependencies extends Dependencies implements Closeable, Completer {
 104 
 105         /**
 106          * set of enabled dependencies modes
 107          */
 108         private EnumSet<DependenciesMode> dependenciesModes;
 109 
 110         /**
 111          * file in which the dependency graph should be written
 112          */
 113         private String dependenciesFile;




  74     protected Dependencies(Context context) {
  75         context.put(dependenciesKey, this);
  76     }
  77 
  78     /**
  79      * Push a new completion node on the stack.
  80      */
  81     abstract public void push(ClassSymbol s, CompletionCause phase);
  82 
  83     /**
  84      * Remove current dependency node from the stack.
  85      */
  86     abstract public void pop();
  87 
  88     public enum CompletionCause implements GraphUtils.DependencyKind {
  89         CLASS_READER,
  90         HEADER_PHASE,
  91         HIERARCHY_PHASE,
  92         IMPORTS_PHASE,
  93         MEMBER_ENTER,
  94         RECORD_PHASE,
  95         MEMBERS_PHASE,
  96         OTHER;
  97     }
  98 
  99     /**
 100      * This class creates a graph of all dependencies as symbols are completed;
 101      * when compilation finishes, the resulting dependency graph is then dumped
 102      * onto a dot file. Several options are provided to customize the output of the graph.
 103      */
 104     public static class GraphDependencies extends Dependencies implements Closeable, Completer {
 105 
 106         /**
 107          * set of enabled dependencies modes
 108          */
 109         private EnumSet<DependenciesMode> dependenciesModes;
 110 
 111         /**
 112          * file in which the dependency graph should be written
 113          */
 114         private String dependenciesFile;


< prev index next >