Class JsInteropUtils
java.lang.Object
com.google.j2cl.transpiler.frontend.javac.JsInteropUtils
Utility functions for JsInterop properties.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.j2cl.transpiler.ast.JsEnumInfogetJsEnumInfo(TypeElement type) static com.google.j2cl.transpiler.ast.JsInfogetJsInfo(ExecutableElement member) Simply resolve the JsInfo from annotations.static com.google.j2cl.transpiler.ast.JsInfogetJsInfo(VariableElement member) static booleanisDoNotAutobox(ExecutableElement method, int i) static booleanisJsAsync(AnnotatedConstruct method) static booleanisJsEnum(AnnotatedConstruct type) static booleanstatic booleanisJsMember(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).static booleanstatic booleanisJsOptional(ExecutableElement method, int i) static booleanisJsOverlay(AnnotatedConstruct method) static booleanisJsType(AnnotatedConstruct type)
-
Method Details
-
getJsInfo
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
-
getJsEnumInfo
-
isJsMember
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
-
isJsOverlay
-
isJsOptional
-
isDoNotAutobox
-
isJsType
-
isJsEnum
-
isJsNativeType
-
isJsFunction
-