com.apollographql.apollo.compiler.Annotations.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-android-sdk-appsync-compiler Show documentation
Show all versions of aws-android-sdk-appsync-compiler Show documentation
AWS AppSync Implementation for the Gradle plugin
The newest version!
/**
* Copyright 2018-2019 Amazon.com,
* Inc. or its affiliates. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.apollographql.apollo.compiler
import com.squareup.javapoet.AnnotationSpec
import com.squareup.javapoet.CodeBlock
import javax.annotation.Generated
import javax.annotation.Nonnull
import javax.annotation.Nullable
object Annotations {
val NULLABLE: AnnotationSpec = AnnotationSpec.builder(Nullable::class.java).build()
val NONNULL: AnnotationSpec = AnnotationSpec.builder(Nonnull::class.java).build()
val OVERRIDE: AnnotationSpec = AnnotationSpec.builder(Override::class.java).build()
val GENERATED_BY_APOLLO: AnnotationSpec = AnnotationSpec.builder(Generated::class.java)
.addMember("value", CodeBlock.of("\$S", "Apollo GraphQL")).build()
val DEPRECATED: AnnotationSpec = AnnotationSpec.builder(java.lang.Deprecated::class.java).build()
}