net.minecraftforge.gdi.annotations.ClosureEquivalent.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovydslimprover Show documentation
Show all versions of groovydslimprover Show documentation
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.ClosureEquivalentTransformer
import org.codehaus.groovy.transform.GroovyASTTransformationClass
import org.gradle.api.Action
import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target
/**
* Annotate a method with an {@link Action} parameter with this annotation in order to add
* a delegate method with the same name and parameters but with a {@link Closure} parameter instead of the action.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.CLASS)
@GroovyASTTransformationClass(classes = ClosureEquivalentTransformer)
@interface ClosureEquivalent {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy