serializes types and types elements into interfaces respectively to fully qualified name,
for example:
public interface MyTestModelStore { public interface org extends IPackage { public interface reflections extends IPackage { public interface TestModel$AC1 extends IClass {} public interface TestModel$C4 extends IClass { public interface f1 extends IField {} public interface m1 extends IMethod {} public interface m1_int_java$lang$String$$$$ extends IMethod {} ... }
use the different resolve methods to resolve the serialized element into Class, Field or Method. for example:
Class<? extends IMethod> imethod = MyTestModelStore.org.reflections.TestModel$C4.m1.class; Method method = JavaCodeSerializer.resolve(imethod);
depends on Reflections configured with {@link org.reflections.scanners.TypesScanner} and {@link org.reflections.scanners.TypeElementsScanner}
the {@link #save(org.reflections.Reflections,String)} method filename should be in the pattern: path/path/path/package.package.classname
|
|