
ilbodai.maven.plugin.thrift-maven-plugin.1.0.0.source-code.thrift.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thrift-maven-plugin Show documentation
Show all versions of thrift-maven-plugin Show documentation
a lightly tool to generate .thrift file from java interface .
The newest version!
namespace java ${thriftServicePackage}
<#list enumList as thriftEnum>
enum ${thriftEnum.name} {
<#list thriftEnum.fields as field>
${field.name} = ${field.value}<#if field_has_next>,#if>
#list>
}
#list>
<#list structList as struct>
struct ${struct.name} {
<#list struct.fields as field>
${field_index + 1}:${field.genericType.toThriftString()} ${field.name}<#if field_has_next>,#if>
#list>
}
#list>
<#list serviceList as service>
service ${service.name} {
<#list service.methods as method>
${method.returnGenericType.toThriftString()} ${method.name}<@compress single_line=true>
(<#list method.methodArgs as arg>${arg_index + 1}:${arg.genericType.toThriftString()} ${arg.name}<#if arg_has_next>, #if>#list>)<#if method_has_next>,#if>
@compress>
#list>
}
#list>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy