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

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

public final class ConnectedComponent
extends java.lang.Object
implements java.lang.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.
 java.util.Iterator<Element> iterator()
           
 java.lang.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 java.util.Iterator<Element> iterator()
Specified by:
iterator in interface java.lang.Iterable<Element>

toString

public java.lang.String toString()
Just produces debug representation

Overrides:
toString in class java.lang.Object