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 FunctionName
className, fullName, methodName, signature, signatureName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the synthetic annotation of a import function.protected booleanIf this function has WASM code or if this function is a import with JavaScript code.Methods inherited from class SyntheticFunctionName
getCodeBuilder, istStaticMethods inherited from class 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:
hasWasmCodein classSyntheticFunctionName- Returns:
- true, if WASM code
-
getAnnotation
Get the synthetic annotation of a import function.- Overrides:
getAnnotationin classSyntheticFunctionName- Returns:
- the annotation
-