|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.iterator.SIRIterator
public abstract class SIRIterator
Abstract class from which 'Iter's inherit.
| Field Summary | |
|---|---|
protected IterFactory |
factory
Factory we should use for making children iterators. |
| Constructor Summary | |
|---|---|
protected |
SIRIterator(IterFactory _factory)
Make an iterator with no parent |
protected |
SIRIterator(IterFactory _factory,
SIRIterator parent,
int pos)
Make an iterator for parent |
| Method Summary | |
|---|---|
abstract void |
accept(StreamVisitor v)
|
protected void |
checkValidity()
Check the validity of this iterator, and print an error message with a stack trace if not valid. |
boolean |
equals(Object o)
Overload equals so that iterators are equal according to the stream objects they're iterating over. |
Object |
getObject()
Return the stream pointed to by this. |
SIRIterator |
getParent()
Get the parent of this. |
SIRContainer[] |
getParents()
Returns list of all parent streams of this. |
int |
getPos()
Returns position of this in parent. |
String |
getRelativeName()
Gets the name by which the parent would refer to the object pointed to by this iterator. |
abstract SIRStream |
getStream()
Return the stream pointed to by this. |
int |
hashCode()
Overload hashCode so that iterators hash according to the stream objects they're iterating over. |
void |
invalidateNode()
Invalidates this individual node, but does not invalidate the tree above it. |
void |
invalidateTree()
Invalidates the entire tree of which this iterator is a part -- that is, everyone that shares the same root as this. |
FeedbackLoopIter |
isFeedbackLoop()
Checks if the iterator points to a FeedbackLoop. |
FilterIter |
isFilter()
Checks if the iterator points to a Filter. |
PipelineIter |
isPipeline()
Checks if the iterator points to a Pipeline. |
SplitJoinIter |
isSplitJoin()
Checks if the iterator points to a SplitJoin. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IterFactory factory
| Constructor Detail |
|---|
protected SIRIterator(IterFactory _factory)
protected SIRIterator(IterFactory _factory,
SIRIterator parent,
int pos)
| Method Detail |
|---|
public FilterIter isFilter()
Iterator
isFilter in interface Iteratorpublic PipelineIter isPipeline()
Iterator
isPipeline in interface Iteratorpublic SplitJoinIter isSplitJoin()
Iterator
isSplitJoin in interface Iteratorpublic FeedbackLoopIter isFeedbackLoop()
Iterator
isFeedbackLoop in interface Iteratorpublic SIRContainer[] getParents()
public String getRelativeName()
public Object getObject()
getObject in interface IteratorBasepublic abstract SIRStream getStream()
public SIRIterator getParent()
public int getPos()
public void invalidateNode()
public void invalidateTree()
protected void checkValidity()
public abstract void accept(StreamVisitor v)
public int hashCode()
hashCode in interface IteratorBasehashCode in class Objectpublic boolean equals(Object o)
equals in interface IteratorBaseequals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||