INNER CODE UNIT · Java
init
xiaojinzi123/Component · ComponentCompiler/src/main/java/com/xiaojinzi/component/AutowireProcessor.java:89
public synchronized void init(ProcessingEnvironment processingEnvironment) {
super.init(processingEnvironment);
bundleTypeElement = mElements.getTypeElement(ComponentConstants.ANDROID_BUNDLE);
kotlinJvmFieldTypeElement = mElements.getTypeElement(ComponentConstants.KOTLIN_JVMFIELD);
try {
kotlinJvmFieldClass = Class.forName(ComponentConstants.KOTLIN_JVMFIELD);
} catch (ClassNotFoundException e) {
// ignore
}
charsequenceTypeElement = mElements.getTypeElement(ComponentConstants.JAVA_CHARSEQUENCE);
charsequenceTypeMirror = charsequenceTypeElement.asType();
charsequenceTypeName = ClassName.get(charsequenceTypeMirror);
serviceTypeElement = mElements.getTypeElement(com.xiaojinzi.component.ComponentConstants.SERVICE_CLASS_NAME);
TypeElement injectTypeElement = mElements.getTypeElement(ComponentConstants.INJECT_CLASS_NAME);
injectClassName = ClassName.get(injectTypeElement);