I create an Source object instance using the following code
Source source = new ByteBuddy()
.subclass(Source.class)
.method(named("hello"))
.intercept(MethodDelegation.to(Target.class))
.defineMethod("myNewMethod", void.class)
.intercept(MethodDelegation.to(Target.class))
.make()
.load(Source.class.getClassLoader())
.getLoaded()
.newInstance();
How can I tell when I analyse a Source object if is created by ByteBuddy ? Is it any marker interface that is implemented or something like this ? The actual class of the generated object is something like Source$ByteBuddy$HFuwCkIQ Thanks !