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.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Set | |
| private ConnectedComponent | cc
|
| pack-priv final Set | foreEdges
Once we build a graph from |
| pack-priv Element | prevPostOrder
Previous element in the DFS post-order traversal of the element graph. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addNext(Element element)
Implements com. For each element in this set, adds an edge to the given element. |
| pack-priv Element | |
| private boolean | |
| pack-priv void | buildDAG(ElementSet incoming)
Implements abstract com. Builds up a DAG among |
| public void | buildStronglyConnectedComponents(List<ConnectedComponent> ccs)
Builds a set of strongly connected components and puts them all into the given set. |
| pack-priv final boolean | Returns: true if it is indeed a cut-set. false if not.Used to keep track of visited nodes. visited)Checks if the given |
| public boolean | contains(ElementSet rhs)
Implements com. 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. |
| private void | formConnectedComponent(ConnectedComponent group)
Forms a strongly connected component by doing a reverse DFS. |
| public boolean | |
| pack-priv boolean | isNullable()
Implements abstract com. True of |
| pack-priv boolean | |
| pack-priv boolean | |
| public Iterator | iterator()
Implements java.
Deprecated
if you statically call this method, there's something wrong.
Just to satisfy the |
| pack-priv ElementSet |
| backEdges | back to summary |
|---|---|
| pack-priv final Set<Element> backEdges | |
| cc | back to summary |
|---|---|
| private ConnectedComponent cc
| |
| foreEdges | back to summary |
|---|---|
| pack-priv final Set<Element> foreEdges Once we build a graph from | |
| prevPostOrder | back to summary |
|---|---|
| pack-priv Element prevPostOrder Previous element in the DFS post-order traversal of the element graph.
We use | |
| Element | back to summary |
|---|---|
| protected Element() | |
| addNext | back to summary |
|---|---|
| public void addNext(Element element) Implements com. Doc from com. For each element in this set, adds an edge to the given element.
| |
| assignDfsPostOrder | back to summary |
|---|---|
| pack-priv Element assignDfsPostOrder(Element prev) Traverses the graph with DFS
and set | |
| belongsToSCC | back to summary |
|---|---|
| private boolean belongsToSCC() | |
| buildDAG | back to summary |
|---|---|
| pack-priv void buildDAG(ElementSet incoming) Implements abstract com. Doc from com. Builds up a DAG among
| |
| buildStronglyConnectedComponents | back to summary |
|---|---|
| public void buildStronglyConnectedComponents(List<ConnectedComponent> ccs) Builds a set of strongly connected components and puts them all into the given set. | |
| checkCutSet | back to summary |
|---|---|
| pack-priv final boolean checkCutSet(ConnectedComponent cc, Set<Element> visited) Checks if the given | |
| contains | back to summary |
|---|---|
| public boolean contains(ElementSet rhs) Implements com. Doc from com. 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. (Erring on the other side is NG)
| |
| formConnectedComponent | back to summary |
|---|---|
| private void formConnectedComponent(ConnectedComponent group) Forms a strongly connected component by doing a reverse DFS. | |
| hasSelfLoop | back to summary |
|---|---|
| public boolean hasSelfLoop() | |
| isNullable | back to summary |
|---|---|
| pack-priv boolean isNullable() Implements abstract com. Doc from com. True of
| |
| isSink | back to summary |
|---|---|
| pack-priv boolean isSink() True if this is | |
| isSource | back to summary |
|---|---|
| pack-priv boolean isSource() True if this is | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Deprecated if you statically call this method, there's something wrong. Just to satisfy the
| |
| lastSet | back to summary |
|---|---|
| pack-priv ElementSet lastSet() Implements abstract com. Doc from com. Computes
| |