package com.redhat.ceylon.common;

public enum Backend {
    None("", BackendSupport.HEADER),
    Java("java", 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;
    }
    
}
@@ -98,19 +98,18 @@
  Java(%22j
-ava
+vm
 %22, Backe

Revert "Annotation for Java backend renamed from "jvm" to "java""