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

public final Class ConnectedComponent

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

Represents one strongly-connected component of the Element graph.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final List<Element>
elements

Elements that belong to this component.

pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
ConnectedComponent()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public boolean
isCollection()

Returns true iff this can match a substring whose length is greater than 1.

public boolean
isRequired()

Returns true iff this forms a cut set of a graph.

public Iterator<Element>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

public String
toString()

Overrides java.lang.Object.toString.

Just produces debug representation

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

elementsback to summary
private final List<Element> elements

Elements that belong to this component.

isRequiredback to summary
pack-priv boolean isRequired

Constructor Detail

ConnectedComponentback to summary
public ConnectedComponent()

Default constructor.

Method Detail

addback to summary
pack-priv void add(Element e)
isCollectionback to summary
public boolean isCollection()

Returns true iff this can match a substring whose length is greater than 1.

That means this property will become a collection property.

isRequiredback to summary
public boolean isRequired()

Returns true iff this forms a cut set of a graph.

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

iteratorback to summary
public Iterator<Element> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Just produces debug representation

Annotations
@Override