Class ImportSyntheticFunctionName
java.lang.Object
de.inetsoftware.jwebassembly.module.FunctionName
de.inetsoftware.jwebassembly.module.SyntheticFunctionName
de.inetsoftware.jwebassembly.module.ImportSyntheticFunctionName
Synthetic/dynamic method based on import annotation.
-
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.SyntheticFunctionName
getCodeBuilder, istStatic
Methods inherited from class de.inetsoftware.jwebassembly.module.FunctionName
equals, getSignature, hashCode
-
Field Details
-
importAnannotation
-
-
Constructor Details
-
ImportSyntheticFunctionName
ImportSyntheticFunctionName(String className, String name, String signature, Function<String, Object> importAnannotation) create a new instance- Parameters:
className
- the Java class namename
- the function namesignature
- the method signature, first the parameters, then null and the the return typesimportAnannotation
- the annotations
-
-
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
-