public final class BytecodeGen
extends java.lang.Object
This class makes heavy use of Function and BiFunction types when interacting
with generated fast-classes and enhanced proxies. This is a deliberate design decision to avoid
using Guice-specific types in the generated classes. This means generated classes can be defined
in the same ClassLoader as their host class without needing access to Guice's own ClassLoader. (In other words it removes any need for bridge ClassLoaders.)
| Modifier and Type | Class and Description |
|---|---|
static interface |
BytecodeGen.EnhancerBuilder
Builder of enhanced classes.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENHANCER_BY_GUICE_MARKER |
static java.lang.String |
FASTCLASS_BY_GUICE_MARKER |
| Constructor and Description |
|---|
BytecodeGen() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCircularProxy(java.lang.Object object)
Returns true if the given object is a circular proxy.
|
public static final java.lang.String ENHANCER_BY_GUICE_MARKER
public static final java.lang.String FASTCLASS_BY_GUICE_MARKER