- java.lang.Object
-
- com.sun.tools.xjc.reader.gbind.Expression
-
- com.sun.tools.xjc.reader.gbind.Element
-
- All Implemented Interfaces:
ElementSet,Iterable<Element>
- Direct Known Subclasses:
SinkNode,SourceNode
public abstract class Element extends Expression implements ElementSet
Expressionthat represents an alphabet of a regular language.Since this package is about a regular expression over element declarations, this represents an XML element declaration (hence the name.) Element needs to be interned, meaning one
Elementper one tag name.Implements
ElementSetto represent a self.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class com.sun.tools.xjc.reader.gbind.Expression
EPSILON
-
Fields inherited from interface com.sun.tools.xjc.reader.gbind.ElementSet
EMPTY_SET
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddNext(Element element)For each element in this set, adds an edge to the given element.voidbuildStronglyConnectedComponents(List<ConnectedComponent> ccs)Builds a set of strongly connected components and puts them all into the given set.booleancontains(ElementSet rhs)Doesn't have to be strict (it's OK for this method to return false when it's actually true) since this is used just for optimization.booleanhasSelfLoop()Iterator<Element>iterator()Deprecated.if you statically call this method, there's something wrong.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addNext
public void addNext(Element element)
Description copied from interface:ElementSetFor each element in this set, adds an edge to the given element.- Specified by:
addNextin interfaceElementSet
-
contains
public boolean contains(ElementSet rhs)
Description copied from interface:ElementSetDoesn't have to be strict (it's OK for this method to return false when it's actually true) since this is used just for optimization. (Erring on the other side is NG)- Specified by:
containsin interfaceElementSet
-
iterator
@Deprecated public Iterator<Element> iterator()
Deprecated.if you statically call this method, there's something wrong.Just to satisfy theElementSetcontract.
-
buildStronglyConnectedComponents
public void buildStronglyConnectedComponents(List<ConnectedComponent> ccs)
Builds a set of strongly connected components and puts them all into the given set.
-
hasSelfLoop
public boolean hasSelfLoop()
-
-