templates.javaClassGraphqlOperations.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-codegen Show documentation
Show all versions of graphql-java-codegen Show documentation
Java Code Generator based on GraphQL schema
The newest version!
<#if package?has_content>
package ${package};
#if>
<#list imports as import>
import ${import}.*;
#list>
<#if javaDoc?has_content>
/**
<#list javaDoc as javaDocLine>
* ${javaDocLine}
#list>
*/
#if>
<#if generatedInfo.getGeneratedType()?has_content>
@${generatedInfo.getGeneratedType()}(
value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
date = "${generatedInfo.getDateTime()}"
)
#if>
public interface ${className}<#if implements?has_content> extends <#list implements as interface>${interface}<#if interface_has_next>, #if>#list>#if> {
<#list operations as operation>
<#if operation.javaDoc?has_content>
/**
<#list operation.javaDoc as javaDocLine>
* ${javaDocLine}
#list>
*/
#if>
<#if operation.deprecated>
@Deprecated
#if>
<#list operation.annotations as annotation>
@${annotation}
#list>
${operation.type} ${operation.name}(<#list operation.parameters as param>${param.type} ${param.name}<#if param_has_next>, #if>#list>) throws Exception;
#list>
}