package com.redhat.ceylon.common;

public enum Backend {
    Java("jvm", BackendSupport.JAVA),
    JavaScript("js", BackendSupport.JAVASCRIPT);
    
    public final String nativeAnnotation;
    public final BackendSupport backendSupport;
    
    Backend(String nativeAnnotation, BackendSupport backendSupport) {
        this.nativeAnnotation = nativeAnnotation;
        this.backendSupport = backendSupport;
    }
    
    public static boolean validAnnotation(String backend) {
        return fromAnnotation(backend) != null;
    }
    
    public static Backend fromAnnotation(String backend) {
        for (Backend b : Backend.values()) {
            if (b.nativeAnnotation.equals(backend)) {
                return b;
            }
        }
        return null;
    }
    
    public static String annotations() {
        String result = "";
        for (Backend b : Backend.values()) {
            if (!result.isEmpty()) {
                result += ", ";
            }
            result += b.nativeAnnotation;
        }
        return result;
    }
}
@@ -777,283 +777,5 @@
    %0A
-    public static String annotations() %7B%0A        String result = %22%22;%0A        for (Backend b : Backend.values()) %7B%0A            if (!result.isEmpty()) %7B%0A                result += %22, %22;%0A            %7D%0A            result += b.nativeAnnotation;%0A        %7D%0A        return result;%0A    %7D%0A
 %7D

remove not-very-useful method