public interface MethodIdHolder
MethodIdMap.| Modifier and Type | Interface and Description |
|---|---|
static class |
MethodIdHolder.MethodIdAllocator
A singleton class for allocating globally unique method identifiers.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assignIds(Consumer<MethodIdHolder.MethodIdAllocator> methodIdConsumer)
Executes some given code that ensures some set of
ResolvedJavaMethods have unique ids
assigned to them. |
int |
getMethodId()
Gets the identifier set by
setMethodId(int) or 0 if no identifier was assigned to
this method. |
void |
setMethodId(int id)
Sets the unique, positive, non-zero identifier for this method.
|
void setMethodId(int id)
int getMethodId()
setMethodId(int) or 0 if no identifier was assigned to
this method.static void assignIds(Consumer<MethodIdHolder.MethodIdAllocator> methodIdConsumer)
ResolvedJavaMethods have unique ids
assigned to them. The
Consumer.accept(Object) method of the given object is called under a global lock.