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
Synthetic JavaScript import function.
-
Field Summary
FieldsFields inherited from class de.inetsoftware.jwebassembly.module.FunctionName
className, fullName, methodName, signature, signatureName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the synthetic annotation of a import function.protected boolean
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
-
Field Details
-
js
-
-
Constructor Details
-
JavaScriptSyntheticFunctionName
public JavaScriptSyntheticFunctionName(String module, String functionName, Supplier<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 Details
-
hasWasmCode
protected boolean hasWasmCode()If this function has WASM code or if this function is a import with JavaScript code.- Specified by:
hasWasmCode
in classSyntheticFunctionName
- Returns:
- true, if WASM code
-
getAnnotation
Get the synthetic annotation of a import function.- Overrides:
getAnnotation
in classSyntheticFunctionName
- Returns:
- the annotation
-