|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
soot.PatchingChain
An implementation of a Chain which can contain only Units, and handles patching to deal with element insertions and removals. This is done by calling Unit.redirectJumpsToThisTo at strategic times.
| Nested Class Summary | |
protected class |
PatchingChain.PatchingIterator
|
| Field Summary | |
protected Chain |
innerChain
|
| Constructor Summary | |
PatchingChain(Chain aChain)
Constructs a PatchingChain from the given Chain. |
|
| Method Summary | |
boolean |
add(Object o)
Adds the given object to this Chain. |
void |
addFirst(Object u)
Adds the given object at the beginning of the Chain. |
void |
addLast(Object u)
Adds the given object at the end of the Chain. |
boolean |
contains(Object u)
Returns true if this patching chain contains the specified element. |
boolean |
follows(Object a,
Object b)
Returns true if object a follows object b in the Chain. |
Object |
getFirst()
Returns the first object in this Chain. |
Object |
getLast()
Returns the last object in this Chain. |
Chain |
getNonPatchingChain()
Returns the inner chain used by the PatchingChain. |
Object |
getPredOf(Object point)
Returns the object immediately preceding point. |
Object |
getSuccOf(Object point)
Returns the object immediately following point. |
void |
insertAfter(List toInsert,
Object point)
Inserts toInsert in the Chain after point. |
void |
insertAfter(Object toInsert,
Object point)
Inserts toInsert in the Chain after point. |
void |
insertBefore(List toInsert,
Object point)
Inserts toInsert in the Chain before point. |
void |
insertBefore(Object toInsert,
Object point)
Inserts toInsert in the Chain before point. |
Iterator |
iterator()
Returns an iterator over this Chain. |
Iterator |
iterator(Object u)
Returns an iterator over this Chain, starting at the given object. |
Iterator |
iterator(Object head,
Object tail)
Returns an iterator over this Chain, starting at head and reaching tail (inclusive). |
boolean |
remove(Object obj)
Removes the given object from this Chain. |
void |
removeFirst()
Removes the first object from this Chain. |
void |
removeLast()
Removes the last object from this Chain. |
int |
size()
Returns the size of this Chain. |
Iterator |
snapshotIterator()
Returns an iterator over a copy of this chain. |
void |
swapWith(Object out,
Object in)
Replaces out in the Chain by in. |
| Methods inherited from class java.util.AbstractCollection |
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
| Field Detail |
protected Chain innerChain
| Constructor Detail |
public PatchingChain(Chain aChain)
| Method Detail |
public Chain getNonPatchingChain()
public boolean add(Object o)
add in interface Collection
public void swapWith(Object out,
Object in)
out in the Chain by in.
swapWith in interface Chain
public void insertAfter(Object toInsert,
Object point)
toInsert in the Chain after point.
insertAfter in interface Chain
public void insertAfter(List toInsert,
Object point)
toInsert in the Chain after point.
insertAfter in interface Chain
public void insertBefore(List toInsert,
Object point)
toInsert in the Chain before point.
insertBefore in interface Chain
public void insertBefore(Object toInsert,
Object point)
toInsert in the Chain before point.
insertBefore in interface Chain
public boolean follows(Object a,
Object b)
a follows object b in the Chain.
follows in interface Chainpublic boolean remove(Object obj)
remove in interface Chainpublic boolean contains(Object u)
contains in interface Collectionpublic void addFirst(Object u)
addFirst in interface Chainpublic void addLast(Object u)
addLast in interface Chainpublic void removeFirst()
removeFirst in interface Chainpublic void removeLast()
removeLast in interface Chainpublic Object getFirst()
getFirst in interface Chainpublic Object getLast()
getLast in interface Chainpublic Object getSuccOf(Object point)
point.
getSuccOf in interface Chainpublic Object getPredOf(Object point)
point.
getPredOf in interface Chainpublic Iterator snapshotIterator()
snapshotIterator in interface Chainpublic Iterator iterator()
iterator in interface Chainpublic Iterator iterator(Object u)
iterator in interface Chain
public Iterator iterator(Object head,
Object tail)
iterator in interface Chainpublic int size()
size in interface Chain
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||