public class MethodInvokerRewriter
extends java.lang.Object
The MethodInvokerRewriter actually manages a portion of the .slcache - it keeps track of two things:
| Constructor and Description |
|---|
MethodInvokerRewriter() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
rewrite(TypeRegistry typeRegistry,
byte[] bytes) |
static byte[] |
rewrite(TypeRegistry typeRegistry,
byte[] bytes,
boolean skipReferencesCheck)
Rewrite regular operations on reloadable types and any reflective calls.
|
static byte[] |
rewriteUsingCache(java.lang.String slashedClassName,
TypeRegistry typeRegistry,
byte[] bytes) |
public static byte[] rewrite(TypeRegistry typeRegistry, byte[] bytes, boolean skipReferencesCheck)
Note: no caching is done here (the cache is not read or written to)
typeRegistry - the registry for which the rewriting is being done.bytes - the bytes for the type to modify.skipReferencesCheck - do we need to do a quick check to see if there is anything worth rewriting?public static byte[] rewrite(TypeRegistry typeRegistry, byte[] bytes)
public static byte[] rewriteUsingCache(java.lang.String slashedClassName,
TypeRegistry typeRegistry,
byte[] bytes)