package com.redhat.ceylon.compiler.java.metadata;

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

/**
 * Annotation applied to Java elements which have a different name in Ceylon
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.TYPE, ElementType.FIELD, ElementType.CONSTRUCTOR})
public @interface Name {
    /** The Ceylon name of the annotated element. */
    String value() default "";
}

@@ -419,16 +419,36 @@
 STRUCTOR
+, ElementType.METHOD
 %7D)%0Apubli

Allow @Name on getter/setter for ceylon/ceylon-compiler#2264