Class JavaScriptSyntheticFunctionName

    • Field Detail

      • js

        private final java.util.function.Supplier<java.lang.String> js
    • Constructor Detail

      • JavaScriptSyntheticFunctionName

        public JavaScriptSyntheticFunctionName​(java.lang.String module,
                                               java.lang.String functionName,
                                               java.util.function.Supplier<java.lang.String> js,
                                               AnyType... signature)
        Create a synthetic function which based on imported, dynamic generated JavaScript.
        Parameters:
        module - the module name
        functionName - the name of the function
        js - the dynamic JavaScript as a lambda expression
        signature - the types of the signature
    • Method Detail

      • hasWasmCode

        protected boolean hasWasmCode()
        If this function has WASM code or if this function is a import with JavaScript code.
        Specified by:
        hasWasmCode in class SyntheticFunctionName
        Returns:
        true, if WASM code
      • getAnnotation

        protected java.util.function.Function<java.lang.String,​java.lang.Object> getAnnotation()
        Get the synthetic annotation of a import function.
        Overrides:
        getAnnotation in class SyntheticFunctionName
        Returns:
        the annotation