Enum Class Backend

java.lang.Object
java.lang.Enum<Backend>
com.google.j2cl.transpiler.backend.Backend
All Implemented Interfaces:
Serializable, Comparable<Backend>, Constable

public enum Backend extends Enum<Backend>
Drives the backend to generate outputs.
  • Enum Constant Details

    • CLOSURE

      public static final Backend CLOSURE
    • WASM

      public static final Backend WASM
    • WASM_MODULAR

      public static final Backend WASM_MODULAR
    • KOTLIN

      public static final Backend KOTLIN
  • Method Details

    • values

      public static Backend[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Backend valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDesugaringPassFactories

      public abstract com.google.common.collect.ImmutableList<Supplier<com.google.j2cl.transpiler.passes.NormalizationPass>> getDesugaringPassFactories()
    • getPassFactories

      public abstract com.google.common.collect.ImmutableList<Supplier<com.google.j2cl.transpiler.passes.NormalizationPass>> getPassFactories(BackendOptions options)
    • checkRestrictions

      public void checkRestrictions(BackendOptions options, com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.Problems problems)
    • generateOutputs

      public abstract void generateOutputs(BackendOptions options, com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.Problems problems)
    • isWasm

      public boolean isWasm()