public static boolean isPrimitiveType(DeclaredTypeName type) { return AptUtils.isEmpty(type.getPackageName()); }
private void emitPackage() throws IOException { writer.writePackage(modelSpec.getGeneratedClassName().getPackageName()); }
public ModelSpec(TypeElement modelSpecElement, Class<T> modelSpecClass, PluginEnvironment pluginEnv, AptUtils utils) { this.utils = utils; this.modelSpecElement = modelSpecElement; this.modelSpecName = new DeclaredTypeName(modelSpecElement.getQualifiedName().toString()); this.modelSpecAnnotation = modelSpecElement.getAnnotation(modelSpecClass); this.generatedClassName = new DeclaredTypeName(modelSpecName.getPackageName(), getGeneratedClassNameString()); this.pluginEnvironment = pluginEnv; this.pluginBundle = pluginEnv.getPluginBundleForModelSpec(this); processVariableElements(); pluginBundle.afterProcessVariableElements(); modelSuperclass = initializeModelSuperclass(); }
public static boolean isPrimitiveType(DeclaredTypeName type) { return AptUtils.isEmpty(type.getPackageName()); }
private void emitPackage() throws IOException { writer.writePackage(modelSpec.getGeneratedClassName().getPackageName()); }
public ModelSpec(TypeElement modelSpecElement, Class<T> modelSpecClass, PluginEnvironment pluginEnv, AptUtils utils) { this.utils = utils; this.modelSpecElement = modelSpecElement; this.modelSpecName = new DeclaredTypeName(modelSpecElement.getQualifiedName().toString()); this.modelSpecAnnotation = modelSpecElement.getAnnotation(modelSpecClass); this.generatedClassName = new DeclaredTypeName(modelSpecName.getPackageName(), getGeneratedClassNameString()); this.pluginEnvironment = pluginEnv; this.pluginBundle = pluginEnv.getPluginBundleForModelSpec(this); processVariableElements(); pluginBundle.afterProcessVariableElements(); modelSuperclass = initializeModelSuperclass(); }