|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoot.toolkits.scalar.AbstractFlowSet
soot.toolkits.scalar.ArraySparseSet
public class ArraySparseSet
Reference implementation for a FlowSet. Items are stored in an Array.
| Field Summary | |
|---|---|
protected static int |
DEFAULT_SIZE
|
protected Object[] |
elements
|
protected int |
maxElements
|
protected int |
numElements
|
| Constructor Summary | |
|---|---|
ArraySparseSet()
|
|
| Method Summary | |
|---|---|
void |
add(Object e)
Adds obj to this. |
void |
clear()
implemented, but *very* inefficient. |
ArraySparseSet |
clone()
Clones the current FlowSet. |
boolean |
contains(Object obj)
Deprecated. This method uses linear-time lookup. For better performance, consider using a HashSet instead, if you require this operation. |
void |
copy(FlowSet destFlow)
Copies the current FlowSet into dest. |
void |
difference(FlowSet otherFlow,
FlowSet destFlow)
Returns the set difference (this intersect ~other) of this FlowSet and other, putting result into dest. |
Object |
emptySet()
implemented, but inefficient. |
boolean |
equals(Object otherFlow)
|
void |
intersection(FlowSet otherFlow,
FlowSet destFlow)
Returns the intersection (meet) of this FlowSet and other,
putting result into dest. |
boolean |
isEmpty()
Returns true if this FlowSet is the empty set. |
void |
remove(Object obj)
Removes obj from this. |
int |
size()
Returns the size of the current FlowSet. |
List |
toList()
Returns a unbacked list of elements in this set. |
void |
union(FlowSet otherFlow,
FlowSet destFlow)
Returns the union (join) of this FlowSet and other, putting
result into dest. |
| Methods inherited from class soot.toolkits.scalar.AbstractFlowSet |
|---|
add, difference, hashCode, intersection, iterator, remove, toString, union |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int DEFAULT_SIZE
protected int numElements
protected int maxElements
protected Object[] elements
| Constructor Detail |
|---|
public ArraySparseSet()
| Method Detail |
|---|
public ArraySparseSet clone()
FlowSet
clone in interface FlowSetclone in class AbstractFlowSetpublic Object emptySet()
AbstractFlowSet
emptySet in interface FlowSetemptySet in class AbstractFlowSetpublic void clear()
AbstractFlowSet
clear in interface FlowSetclear in class AbstractFlowSetpublic int size()
FlowSet
size in interface FlowSetsize in class AbstractFlowSetpublic boolean isEmpty()
FlowSet
isEmpty in interface FlowSetisEmpty in class AbstractFlowSetpublic List toList()
toList in interface FlowSettoList in class AbstractFlowSetpublic void add(Object e)
FlowSetobj to this.
add in interface FlowSetadd in class AbstractFlowSetpublic void remove(Object obj)
FlowSetobj from this.
remove in interface FlowSetremove in class AbstractFlowSet
public void union(FlowSet otherFlow,
FlowSet destFlow)
FlowSetother, putting
result into dest. dest, other and
this could be the same object.
union in interface FlowSetunion in class AbstractFlowSet
public void intersection(FlowSet otherFlow,
FlowSet destFlow)
FlowSetother,
putting result into dest. dest,
other and this could be the same object.
intersection in interface FlowSetintersection in class AbstractFlowSet
public void difference(FlowSet otherFlow,
FlowSet destFlow)
FlowSetother, putting result into dest.
dest, other and this could be the
same object.
difference in interface FlowSetdifference in class AbstractFlowSetpublic boolean contains(Object obj)
HashSet instead, if you require this operation.
FlowSetobj.
contains in interface FlowSetcontains in class AbstractFlowSetpublic boolean equals(Object otherFlow)
equals in class AbstractFlowSetpublic void copy(FlowSet destFlow)
FlowSet
copy in interface FlowSetcopy in class AbstractFlowSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||