Class ImportSyntheticFunctionName


  • class ImportSyntheticFunctionName
    extends SyntheticFunctionName
    Synthetic/dynamic method based on import annotation.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportSyntheticFunctionName​(java.lang.String className, java.lang.String name, java.lang.String signature, java.util.function.Function<java.lang.String,​java.lang.Object> importAnannotation)
      create a new instance
    • Field Detail

      • importAnannotation

        private final java.util.function.Function<java.lang.String,​java.lang.Object> importAnannotation
    • Constructor Detail

      • ImportSyntheticFunctionName

        ImportSyntheticFunctionName​(java.lang.String className,
                                    java.lang.String name,
                                    java.lang.String signature,
                                    java.util.function.Function<java.lang.String,​java.lang.Object> importAnannotation)
        create a new instance
        Parameters:
        className - the Java class name
        name - the function name
        signature - the method signature, first the parameters, then null and the the return types
        importAnannotation - the annotations
    • 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