Class ValueNumberFactory
java.lang.Object
edu.umd.cs.findbugs.ba.vna.ValueNumberFactory
Factory for ValueNumbers. A single Factory must be used to create all of the
ValueNumbers for a method.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList<ValueNumber> Store all allocated value numbers.private final HashMap<String, ValueNumber> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompact(int[] map, int numValuesAllocated) Deprecated.Create a fresh (unique) value number.createFreshValue(int flags) forNumber(int number) Return a previously allocated value.getClassObjectValue(String className) Get the ValueNumber for given class's Class object.intGet the number of values which have been created.
-
Field Details
-
allocatedValueList
Store all allocated value numbers. -
classObjectValueMap
-
-
Constructor Details
-
ValueNumberFactory
public ValueNumberFactory()
-
-
Method Details
-
createFreshValue
Create a fresh (unique) value number. -
createFreshValue
-
forNumber
Return a previously allocated value. -
getNumValuesAllocated
public int getNumValuesAllocated()Get the number of values which have been created. -
compact
Deprecated.Compact the value numbers produced by this factory.- Parameters:
map- array mapping old numbers to new numbersnumValuesAllocated- the number of values allocated in the new numbering
-
getClassObjectValue
Get the ValueNumber for given class's Class object.- Parameters:
className- the class
-
getClassName
-