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.

Author:
Kohsuke Kawaguchi

Constructor Summary
ConnectedComponent()
           
 
Method Summary
 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
 

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.


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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.