br.com.objectos.code.Artifact类的使用及代码示例

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

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

Artifact介绍

暂无

代码示例

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

@Override
public final Artifact generate() {
 return Artifact.empty();
}

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

@Override
protected void execute(ProcessingEnvironment processingEnv) {
 for (Artifact artifact : list) {
  artifact.execute(processingEnv);
 }
}

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

public static List<Artifact> toArtifactList(Artifact artifact) {
 return artifact.toArtifactList();
}

代码示例来源:origin: br.com.objectos.orm/compiler

public Artifact execute() {
 return Artifact.of(javaFile());
}

代码示例来源: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/apt

@Override
public void writeTo(Path path) {
 for (Artifact artifact : list) {
  artifact.writeTo(path);
 }
}

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

public Artifact toArtifact(TypeSpec type) {
 JavaFile file = JavaFile.builder(packageName(), type)
   .skipJavaLangImports(true)
   .build();
 return Artifact.of(file);
}

代码示例来源: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-apt

@Override
public void writeTo(Path path) {
 for (Artifact artifact : list) {
  artifact.writeTo(path);
 }
}

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

@Override
public final Artifact generate() {
 return Artifact.empty();
}

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

public Artifact toArtifact(TypeSpec type) {
 JavaFile file = JavaFile.builder(packageName(), type)
   .skipJavaLangImports(true)
   .build();
 return Artifact.of(file);
}

代码示例来源:origin: br.com.objectos.code/apt

@Override
protected void execute(ProcessingEnvironment processingEnv) {
 for (Artifact artifact : list) {
  artifact.execute(processingEnv);
 }
}

代码示例来源: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();
}

代码示例来源:origin: br.com.objectos.code/apt

public static List<Artifact> toArtifactList(Artifact artifact) {
 return artifact.toArtifactList();
}

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

@Override
public Artifact execute() {
 return Artifact.empty();
}

代码示例来源:origin: br.com.objectos.html/boot

public Artifact generate() {
 JavaFile javaFile = JavaFile.builder(packageInfo.toString(), type())
   .skipJavaLangImports(true)
   .build();
 return Artifact.of(javaFile);
}

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

protected void action(Artifact artifact) {
 artifact.execute(processingEnv);
}

代码示例来源:origin: br.com.objectos.code/apt

@Override
List<Artifact> toArtifactList() {
 ImmutableList.Builder<Artifact> list = ImmutableList.builder();
 for (Artifact artifact : this.list) {
  list.addAll(artifact.toArtifactList());
 }
 return list.build();
}

代码示例来源:origin: br.com.objectos.orm/compiler

@Override
public Artifact execute(PojoInfo pojoInfo) {
 return OrmPojoInfo.of(pojoInfo)
   .map(OrmPojoInfo::companionType)
   .map(CompanionType::execute)
   .orElse(Artifact.empty());
}

代码示例来源:origin: br.com.objectos.html/boot

public Artifact generate(TypeInfo typeInfo) {
 JavaFile javaFile = typeInfo.toJavaFile(type());
 return Artifact.of(javaFile);
}

相关文章