Class JsInteropUtils

java.lang.Object
com.google.j2cl.transpiler.frontend.javac.JsInteropUtils

public final class JsInteropUtils extends Object
Utility functions for JsInterop properties.
  • Method Details

    • getJsInfo

      public static com.google.j2cl.transpiler.ast.JsInfo getJsInfo(ExecutableElement member)
      Simply resolve the JsInfo from annotations. Do not do any extra computations. For example, if there is no "name" is specified in the annotation, just returns null for JsName.
    • getJsInfo

      public static com.google.j2cl.transpiler.ast.JsInfo getJsInfo(VariableElement member)
    • getJsEnumInfo

      @Nullable public static com.google.j2cl.transpiler.ast.JsEnumInfo getJsEnumInfo(TypeElement type)
    • isJsMember

      public static boolean isJsMember(ExecutableElement method)
      Returns true if the method is a a JsMember because of immediate conditions (either it is directly annotated or it's enclosing class is annotated).
    • isJsAsync

      public static boolean isJsAsync(AnnotatedConstruct method)
    • isJsOverlay

      public static boolean isJsOverlay(AnnotatedConstruct method)
    • isJsOptional

      public static boolean isJsOptional(ExecutableElement method, int i)
    • isDoNotAutobox

      public static boolean isDoNotAutobox(ExecutableElement method, int i)
    • isJsType

      public static boolean isJsType(AnnotatedConstruct type)
    • isJsEnum

      public static boolean isJsEnum(AnnotatedConstruct type)
    • isJsNativeType

      public static boolean isJsNativeType(AnnotatedConstruct type)
    • isJsFunction

      public static boolean isJsFunction(AnnotatedConstruct type)