public class ValueNumberFactory
extends java.lang.Object
ValueNumber
Constructor and Description |
---|
ValueNumberFactory() |
Modifier and Type | Method and Description |
---|---|
void |
compact(int[] map,
int numValuesAllocated)
Deprecated.
|
ValueNumber |
createFreshValue()
Create a fresh (unique) value number.
|
ValueNumber |
createFreshValue(int flags) |
ValueNumber |
forNumber(int number)
Return a previously allocated value.
|
java.lang.String |
getClassName(ValueNumber v) |
ValueNumber |
getClassObjectValue(java.lang.String className)
Get the ValueNumber for given class's Class object.
|
int |
getNumValuesAllocated()
Get the number of values which have been created.
|
public ValueNumber createFreshValue()
public ValueNumber createFreshValue(int flags)
public ValueNumber forNumber(int number)
public int getNumValuesAllocated()
@Deprecated public void compact(int[] map, int numValuesAllocated)
map
- array mapping old numbers to new numbersnumValuesAllocated
- the number of values allocated in the new numberingpublic ValueNumber getClassObjectValue(@DottedClassName java.lang.String className)
className
- the class@CheckForNull @DottedClassName public java.lang.String getClassName(ValueNumber v)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.