本文整理了Java中br.com.objectos.code.Artifact.of()
方法的一些代码示例,展示了Artifact.of()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Artifact.of()
方法的具体详情如下:
包路径:br.com.objectos.code.Artifact
类名称:Artifact
方法名:of
暂无
代码示例来源:origin: br.com.objectos.orm/compiler
public Artifact execute() {
return Artifact.of(javaFile());
}
代码示例来源: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
public Artifact toArtifact(TypeSpec type) {
JavaFile file = JavaFile.builder(packageName(), type)
.skipJavaLangImports(true)
.build();
return Artifact.of(file);
}
代码示例来源: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.html/boot
public Artifact generate(TypeInfo typeInfo) {
JavaFile javaFile = typeInfo.toJavaFile(type());
return Artifact.of(javaFile);
}
代码示例来源:origin: br.com.objectos.orm/compiler
public Artifact generate() {
JavaFile file = JavaFile.builder(repoClassName().packageName(), type())
.skipJavaLangImports(true)
.build();
return Artifact.of(file);
}
代码示例来源:origin: br.com.objectos.html/boot
private Artifact generate(TypeInfo typeInfo) {
ProtoTypeType protoTypeType = ProtoTypeType.of(typeInfo);
JavaFile protoFile = protoTypeType.generate();
ElementType elementType = ElementType.of(protoTypeType);
JavaFile elementFile = elementType.generate();
return Artifact.of(protoFile, elementFile);
}
代码示例来源:origin: br.com.objectos.code/tools-testing
private Artifact iface(TypeInfo typeInfo, String message) {
ClassName className = typeInfo.classNameSuffix("Message");
TypeSpec typeSpec = TypeSpec.interfaceBuilder(className)
.addAnnotation(AnnotationSpec.builder(Message.class)
.addMember("value", "$S", message)
.build())
.build();
JavaFile javaFile = typeInfo.toJavaFile(typeSpec);
return Artifact.of(javaFile);
}
内容来源于网络,如有侵权,请联系作者删除!