use of org.gsonformat.intellij.process.IProcessor in project GsonFormat by zzz40500.
the class DataWriter method run.
@Override
protected void run() {
if (targetClass == null) {
return;
}
generateClassList.clear();
new ClassProcessor(factory, cls).generate(targetClass, new IProcessor() {
@Override
public void onStarProcess(ClassEntity classEntity, PsiElementFactory factory, PsiClass cls) {
generateClassList.add(cls.getQualifiedName());
}
@Override
public void onEndProcess(ClassEntity classEntity, PsiElementFactory factory, PsiClass cls) {
}
@Override
public void onStartGenerateClass(PsiElementFactory factory, ClassEntity classEntity, PsiClass parentClass) {
}
@Override
public void onEndGenerateClass(PsiElementFactory factory, ClassEntity classEntity, PsiClass parentClass, PsiClass generateClass) {
generateClassList.add(generateClass.getQualifiedName());
}
});
}
Aggregations