All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraftforge.gdi.annotations.DefaultMethods.groovy Maven / Gradle / Ivy

Go to download

Groovy Compiler Plugin to improve building Groovy based DSLs, like those used in Gradle.

The newest version!
/*
 * Copyright (c) Forge Development LLC and contributors
 * SPDX-License-Identifier: LGPL-2.1-only
 */

package net.minecraftforge.gdi.annotations

import net.minecraftforge.gdi.transformer.DefaultMethodsTransformer
import org.codehaus.groovy.transform.GroovyASTTransformationClass

import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target

/**
 * Annotate a Groovy interface with this annotation in order to add Java 8 default interface methods to the interface. 
* Note: this annotation exists because Groovy 3 default interface methods are not using the Java 8 {@code default} * modifier and instead are treated as trait methods. */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.CLASS) @GroovyASTTransformationClass(classes = DefaultMethodsTransformer) @interface DefaultMethods { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy