linkedin / dexmaker

A utility for doing compile or runtime code generation targeting Android's Dalvik VM
Apache License 2.0
1.86k stars 248 forks source link

const-class support #146

Closed tiann closed 4 years ago

tiann commented 4 years ago

I want to generate a class like this:

public class Generated {
    public static void test() {
        Class<?> clazz = Generated.class; // how to access the generated class's class?
    }
}

I have read the source but i cannot found a way to do operation: Generated.class

How can i do this ?