|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.ValueNumberFactory
public class ValueNumberFactory
Factory for ValueNumbers. A single Factory must be used to create all of the ValueNumbers for a method.
ValueNumber
Field Summary | |
---|---|
private java.util.ArrayList<ValueNumber> |
allocatedValueList
Store all allocated value numbers. |
Constructor Summary | |
---|---|
ValueNumberFactory()
|
Method Summary | |
---|---|
void |
compact(int[] map,
int numValuesAllocated)
Compact the value numbers produced by this factory. |
ValueNumber |
createFreshValue()
Create a fresh (unique) value number. |
ValueNumber |
forNumber(int number)
Return a previously allocated value. |
int |
getNumValuesAllocated()
Get the number of values which have been created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<ValueNumber> allocatedValueList
Constructor Detail |
---|
public ValueNumberFactory()
Method Detail |
---|
public ValueNumber createFreshValue()
public ValueNumber forNumber(int number)
public int getNumValuesAllocated()
public void compact(int[] map, int numValuesAllocated)
map
- array mapping old numbers to new numbersnumValuesAllocated
- the number of values allocated in the new numbering
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |