br.com.objectos.code.Artifact.builder()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中br.com.objectos.code.Artifact.builder()方法的一些代码示例,展示了Artifact.builder()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Artifact.builder()方法的具体详情如下:
包路径:br.com.objectos.code.Artifact
类名称:Artifact
方法名:builder

Artifact.builder介绍

暂无

代码示例

代码示例来源:origin: br.com.objectos.pojo/plugin

@Override
public final Artifact generate() {
 pojoClass.onExecute(builder);
 builder.onExecute();
 Artifact.Builder artifactList = Artifact.builder();
 pojoClass.accept(artifactList);
 builder.accept(artifactList);
 for (ArtifactAction action : artifactActionList) {
  artifactList.addArtifact(action.execute(pojoInfo));
 }
 return artifactList.build();
}

代码示例来源:origin: br.com.objectos/pojo-plugin

@Override
public final Artifact generate() {
 pojoClass.onExecute(builder);
 builder.onExecute();
 Artifact.Builder artifactList = Artifact.builder();
 pojoClass.accept(artifactList);
 builder.accept(artifactList);
 for (ArtifactAction action : artifactActionList) {
  artifactList.addArtifact(action.execute(pojoInfo));
 }
 return artifactList.build();
}

代码示例来源:origin: br.com.objectos.code/tools-testing

private Artifact generate(TypeInfo typeInfo) {
 ClassPath classPath = ClassPath.builder()
   .addJarOf(getClass())
   .build();
 ProcessorCompiler compiler = classPath.processorCompiler(processingEnv);
 String message = compiler
   .compile(typeInfo)
   .methodInfo("get")
   .invoke()
   .invoke(Methods.toStringMethod())
   .returnValueAs(String.class);
 return Artifact.builder()
   .addArtifact(iface(typeInfo, message))
   .addArtifact(txt(typeInfo, message))
   .build();
}

相关文章