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

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

public final class ConnectedComponent
extends Object
implements Iterable<Element>

Represents one strongly-connected component of the Element graph.


Field Summary
(package private)  boolean isRequired
           
 
Constructor Summary
ConnectedComponent()
           
 
Method Summary
(package private)  void add(Element e)
           
 boolean isCollection()
          Returns true iff this ConnectedComponent can match a substring whose length is greater than 1.
 boolean isRequired()
          Returns true iff this ConnectedComponent forms a cut set of a graph.
 Iterator<Element> iterator()
           
 String toString()
          Just produces debug representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isRequired

boolean isRequired
Constructor Detail

ConnectedComponent

public ConnectedComponent()
Method Detail

isCollection

public final boolean isCollection()
Returns true iff this ConnectedComponent can match a substring whose length is greater than 1.

That means this property will become a collection property.


isRequired

public final boolean isRequired()
Returns true iff this ConnectedComponent forms a cut set of a graph.

That means any valid element sequence must have at least one value for this property.


add

void add(Element e)

iterator

public Iterator<Element> iterator()
Specified by:
iterator in interface Iterable<Element>

toString

public String toString()
Just produces debug representation

Overrides:
toString in class Object