Class JavaScriptSyntheticFunctionName
- java.lang.Object
-
- de.inetsoftware.jwebassembly.module.FunctionName
-
- de.inetsoftware.jwebassembly.module.SyntheticFunctionName
-
- de.inetsoftware.jwebassembly.module.ArraySyntheticFunctionName
-
- de.inetsoftware.jwebassembly.javascript.JavaScriptSyntheticFunctionName
-
public class JavaScriptSyntheticFunctionName extends ArraySyntheticFunctionName
Synthetic JavaScript import function.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<java.lang.String>js-
Fields inherited from class de.inetsoftware.jwebassembly.module.FunctionName
className, fullName, methodName, signature, signatureName
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.function.Function<java.lang.String,java.lang.Object>getAnnotation()Get the synthetic annotation of a import function.protected booleanhasWasmCode()If this function has WASM code or if this function is a import with JavaScript code.-
Methods inherited from class de.inetsoftware.jwebassembly.module.ArraySyntheticFunctionName
getSignature
-
Methods inherited from class de.inetsoftware.jwebassembly.module.SyntheticFunctionName
getCodeBuilder, istStatic
-
Methods inherited from class de.inetsoftware.jwebassembly.module.FunctionName
equals, hashCode
-
-
-
-
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 namefunctionName- the name of the functionjs- the dynamic JavaScript as a lambda expressionsignature- 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:
hasWasmCodein classSyntheticFunctionName- 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:
getAnnotationin classSyntheticFunctionName- Returns:
- the annotation
-
-