Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.gbind

public final Class Graph

extends Object
implements Iterable<ConnectedComponent>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
java.util.ArrayList, .HashSet, .Iterator, .List, .Set

Graph of Elements.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final List<ConnectedComponent>
ccs

Strongly connected components of this graph.

private final Element
private final Element

Constructor Summary

AccessConstructor and Description
public
Graph(Expression body)

Builds a from an Expression tree.

Method Summary

Modifier and TypeMethod and Description
public Iterator<ConnectedComponent>
iterator()

Implements java.lang.Iterable.iterator.

List up ConnectedComponents of this graph in an order.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ccsback to summary
private final List<ConnectedComponent> ccs

Strongly connected components of this graph.

sinkback to summary
private final Element sink
sourceback to summary
private final Element source

Constructor Detail

Graphback to summary
public Graph(Expression body)

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

Method Detail

iteratorback to summary
public Iterator<ConnectedComponent> iterator()

Implements java.lang.Iterable.iterator.

List up ConnectedComponents of this graph in an order.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override