com.sun.tools.xjc.reader.gbind
Class Graph

java.lang.Object
  extended by com.sun.tools.xjc.reader.gbind.Graph
All Implemented Interfaces:
Iterable<ConnectedComponent>

public final class Graph
extends Object
implements Iterable<ConnectedComponent>

Graph of Elements.


Constructor Summary
Graph(Expression body)
          Builds a Graph from an Expression tree.
 
Method Summary
 Iterator<ConnectedComponent> iterator()
          List up ConnectedComponents of this graph in an order.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Graph

public Graph(Expression body)
Builds a Graph from an Expression tree. Expression given to the graph will be modified forever, and it will not be able to create another Graph.

Method Detail

iterator

public Iterator<ConnectedComponent> iterator()
List up ConnectedComponents of this graph in an order.

Specified by:
iterator in interface Iterable<ConnectedComponent>

toString

public String toString()
Overrides:
toString in class Object