
com.wangjiegulu.rapidooo.library.compiler.part.impl.DefaultConstructorMethodPartBrew Maven / Gradle / Ivy
package com.wangjiegulu.rapidooo.library.compiler.part.impl;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;
import com.wangjiegulu.rapidooo.library.compiler.oooentry.OOOEntry;
import com.wangjiegulu.rapidooo.library.compiler.part.PartBrew;
import javax.lang.model.element.Modifier;
/**
* Author: wangjie Email: [email protected] Date: 2019-06-13.
*/
public class DefaultConstructorMethodPartBrew implements PartBrew {
@Override
public void brew(OOOEntry oooEntry, TypeSpec.Builder result) {
MethodSpec.Builder defaultConstructorMethod = MethodSpec.constructorBuilder()
.addModifiers(Modifier.PUBLIC);
result.addMethod(defaultConstructorMethod.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy