Class<?> descriptor = me.load(new BytecodeLoader.Loader());
PyBuiltinCallable func = instantiate(descriptor, me.getNames()[0]);
if (me instanceof ClassMethodExposer) {
return func.bind(new SimpleExposed().getType());
}
return func.bind(new SimpleExposed());
}
public static PyBuiltinCallable instantiate(Class<?> descriptor, String name) throws Exception {
return (PyBuiltinCallable)descriptor.getConstructor(String.class).newInstance(name);
}