class SubclassBytecodeGenerator extends java.lang.Object implements BytecodeGenerator
Modifier and Type | Field and Description |
---|---|
private net.bytebuddy.ByteBuddy |
byteBuddy |
private static java.lang.String |
CODEGEN_PACKAGE |
private net.bytebuddy.implementation.Implementation |
dispatcher |
private net.bytebuddy.implementation.Implementation |
equals |
private net.bytebuddy.implementation.Implementation |
hashCode |
private SubclassLoader |
loader |
private net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> |
matcher |
private java.util.Random |
random |
private net.bytebuddy.implementation.Implementation |
readReplace |
private net.bytebuddy.implementation.Implementation |
writeReplace |
Modifier | Constructor and Description |
---|---|
|
SubclassBytecodeGenerator() |
|
SubclassBytecodeGenerator(net.bytebuddy.implementation.Implementation readReplace,
net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher) |
|
SubclassBytecodeGenerator(SubclassLoader loader) |
protected |
SubclassBytecodeGenerator(SubclassLoader loader,
net.bytebuddy.implementation.Implementation readReplace,
net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher) |
Modifier and Type | Method and Description |
---|---|
private static void |
assertVisibility(java.lang.Class<?> type) |
private boolean |
isComingFromJDK(java.lang.Class<?> type) |
private boolean |
isComingFromSealedPackage(java.lang.Class<?> type) |
private boolean |
isComingFromSignedJar(java.lang.Class<?> type) |
private static net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.method.MethodDescription> |
isGroovyMethod() |
<T> java.lang.Class<? extends T> |
mockClass(MockFeatures<T> features) |
private java.lang.String |
nameFor(java.lang.Class<?> type) |
private static final java.lang.String CODEGEN_PACKAGE
private final SubclassLoader loader
private final net.bytebuddy.ByteBuddy byteBuddy
private final java.util.Random random
private final net.bytebuddy.implementation.Implementation readReplace
private final net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher
private final net.bytebuddy.implementation.Implementation dispatcher
private final net.bytebuddy.implementation.Implementation hashCode
private final net.bytebuddy.implementation.Implementation equals
private final net.bytebuddy.implementation.Implementation writeReplace
public SubclassBytecodeGenerator()
public SubclassBytecodeGenerator(SubclassLoader loader)
public SubclassBytecodeGenerator(net.bytebuddy.implementation.Implementation readReplace, net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher)
protected SubclassBytecodeGenerator(SubclassLoader loader, net.bytebuddy.implementation.Implementation readReplace, net.bytebuddy.matcher.ElementMatcher<? super net.bytebuddy.description.method.MethodDescription> matcher)
public <T> java.lang.Class<? extends T> mockClass(MockFeatures<T> features)
mockClass
in interface BytecodeGenerator
private static net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.method.MethodDescription> isGroovyMethod()
private java.lang.String nameFor(java.lang.Class<?> type)
private boolean isComingFromJDK(java.lang.Class<?> type)
private boolean isComingFromSealedPackage(java.lang.Class<?> type)
private boolean isComingFromSignedJar(java.lang.Class<?> type)
private static void assertVisibility(java.lang.Class<?> type)