|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoeq.Compiler.Quad.QuadIterator
public class QuadIterator
| Constructor Summary | |
|---|---|
QuadIterator(ControlFlowGraph cfg)
Initialize the iterator to iterate over the quads in the given control flow graph in reverse post order. |
|
QuadIterator(ControlFlowGraph cfg,
boolean direction)
Initialize the iterator to iterate over the quads in the given control flow graph. |
|
| Method Summary | |
|---|---|
void |
add(Quad obj)
Adds a quad to the underlying quad list. |
BasicBlock |
getCurrentBasicBlock()
|
Quad |
getCurrentQuad()
|
jwutil.graphs.Navigator |
getNavigator()
|
boolean |
hasNext()
Returns whether there is a next quad in this iteration. |
boolean |
hasPrevious()
Returns whether this iteration has a previous quad. |
Quad |
next()
Return the next quad in the iteration. |
int |
nextIndex()
Returns the index of the next quad to be returned. |
java.util.Iterator<Quad> |
predecessors()
|
java.util.Collection<Quad> |
predecessors1()
|
Quad |
previous()
Returns the previous quad in the iteration. |
int |
previousIndex()
Returns the index of the previous quad. |
void |
remove()
Removes the last-returned-quad from the underlying list. |
boolean |
searchBackward(java.lang.Object node)
|
boolean |
searchForward(java.lang.Object node)
|
void |
set(Quad obj)
Sets the current quad. |
java.util.Iterator<Quad> |
successors()
Return an iterator of the possible successor quads of the most recently returned quad. |
java.util.Collection<Quad> |
successors1()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuadIterator(ControlFlowGraph cfg)
cfg - the control flow graph
public QuadIterator(ControlFlowGraph cfg,
boolean direction)
direction - the direction to iterate, forward==truecfg - the control flow graph| Method Detail |
|---|
public BasicBlock getCurrentBasicBlock()
public Quad getCurrentQuad()
public Quad next()
next in interface java.util.Iterator<Quad>next in interface java.util.ListIterator<Quad>public boolean hasNext()
hasNext in interface java.util.Iterator<Quad>hasNext in interface java.util.ListIterator<Quad>public void set(Quad obj)
set in interface java.util.ListIterator<Quad>public int nextIndex()
nextIndex in interface java.util.ListIterator<Quad>public Quad previous()
previous in interface java.util.ListIterator<Quad>public void remove()
remove in interface java.util.Iterator<Quad>remove in interface java.util.ListIterator<Quad>public int previousIndex()
previousIndex in interface java.util.ListIterator<Quad>public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<Quad>public void add(Quad obj)
add in interface java.util.ListIterator<Quad>public java.util.Iterator<Quad> successors()
java.lang.IllegalStateException - if the nextQuad method has not yet been called.public java.util.Collection<Quad> successors1()
public java.util.Iterator<Quad> predecessors()
public java.util.Collection<Quad> predecessors1()
public jwutil.graphs.Navigator getNavigator()
public boolean searchForward(java.lang.Object node)
public boolean searchBackward(java.lang.Object node)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||