cn.vonce.sql.android.processor.AndroidSqlConstantProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vonce-sqlbean-android Show documentation
Show all versions of vonce-sqlbean-android Show documentation
This is a tool that uses Java object-oriented thinking to write and generate Sql statements, and on this basis, it implements lightweight plug-in support for Android. A large number of commonly used Sql execution methods are built into the plug-in, the purpose is to improve development efficiency, reduce a large number of Sql statement writing, and let developers focus more on writing business code.
The newest version!
package cn.vonce.sql.android.processor;
import cn.vonce.sql.processor.SqlConstantProcessor;
import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.TypeElement;
import java.util.Set;
/**
* 生成表字段常量处理器
*
* @author Jovi
* @version 1.0
* @email [email protected]
* @date 2020/2/26 14:21
*/
@SupportedAnnotationTypes({"cn.vonce.sql.annotation.SqlTable"})
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class AndroidSqlConstantProcessor extends SqlConstantProcessor {
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
super.init(processingEnv);
}
@Override
public boolean process(Set extends TypeElement> annotations, RoundEnvironment env) {
return super.process(annotations, env);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy