Class Element

  • All Implemented Interfaces:
    java.lang.Iterable<Element>
    Direct Known Subclasses:
    SinkNode, SourceNode

    public abstract class Element
    extends Expression
    Expression that 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 Element per one tag name.

    Implements ElementSet to represent a self.

    Author:
    Kohsuke Kawaguchi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.sun.tools.xjc.reader.gbind.ElementSet EMPTY_SET  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Element()  
    • Field Detail

      • EMPTY_SET

        public static final com.sun.tools.xjc.reader.gbind.ElementSet EMPTY_SET
    • Constructor Detail

      • Element

        protected Element()
    • Method Detail

      • addNext

        public void addNext​(Element element)
      • contains

        public boolean contains​(com.sun.tools.xjc.reader.gbind.ElementSet rhs)
      • iterator

        public java.util.Iterator<Element> iterator()
        Deprecated.
        if you statically call this method, there's something wrong.
        Just to satisfy the ElementSet contract.
        Specified by:
        iterator in interface java.lang.Iterable<Element>
      • buildStronglyConnectedComponents

        public void buildStronglyConnectedComponents​(java.util.List<ConnectedComponent> ccs)
        Builds a set of strongly connected components and puts them all into the given set.
      • hasSelfLoop

        public boolean hasSelfLoop()