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

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

public final class Graph
extends java.lang.Object
implements java.lang.Iterable<ConnectedComponent>

Graph of Elements.


Constructor Summary
Graph(Expression body)
          Builds a Graph from an Expression tree.
 
Method Summary
 java.util.Iterator<ConnectedComponent> iterator()
          List up ConnectedComponents of this graph in an order.
 java.lang.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 java.util.Iterator<ConnectedComponent> iterator()
List up ConnectedComponents of this graph in an order.

Specified by:
iterator in interface java.lang.Iterable<ConnectedComponent>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object