|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
net.sf.jode.flow.SlotSet
This class represents a set of local info, all having different slots. It is used for representing the in sets of flow block.
Its add method will automatically merge any localinfo that have the same slot and is in the method.
Constructor Summary | |
SlotSet()
Creates a new empty variable set |
|
SlotSet(LocalInfo[] locals)
Creates a new pre initialized variable set |
Method Summary | |
boolean |
add(java.lang.Object o)
Adds a local info to this variable set. |
void |
clear()
Removes everything from this variable set. |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsSlot(int slot)
Checks if the variable set contains a local with the given name. |
LocalInfo |
findSlot(int slot)
Checks if the variable set contains a local with the given slot. |
void |
grow(int size)
|
java.util.Iterator |
iterator()
|
void |
merge(VariableSet vs)
Merges this SlotSet with another. |
void |
mergeKill(LocalInfo li)
Add the slots in kill to the current set, unless there are already in this set. |
void |
mergeKill(java.util.Set kill)
Add the slots in kill to the current set, unless there are already in this set. |
boolean |
remove(java.lang.Object li)
Removes a slot from this variable set. |
int |
size()
|
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, isEmpty, retainAll, toArray, toArray |
Constructor Detail |
public SlotSet()
public SlotSet(LocalInfo[] locals)
Method Detail |
public final void grow(int size)
public boolean add(java.lang.Object o)
add
in interface java.util.Set
public final boolean contains(java.lang.Object o)
contains
in interface java.util.Set
public final boolean containsSlot(int slot)
public LocalInfo findSlot(int slot)
public boolean remove(java.lang.Object li)
remove
in interface java.util.Set
public int size()
size
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.util.Set
public void clear()
clear
in interface java.util.Set
public java.lang.Object clone()
public void merge(VariableSet vs)
vs
- the other variable set.
public void mergeKill(LocalInfo li)
public void mergeKill(java.util.Set kill)
kill
- The other kill set.
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |