Class WatCodeSyntheticFunctionName
java.lang.Object
de.inetsoftware.jwebassembly.module.FunctionName
de.inetsoftware.jwebassembly.module.SyntheticFunctionName
de.inetsoftware.jwebassembly.module.ArraySyntheticFunctionName
de.inetsoftware.jwebassembly.module.WatCodeSyntheticFunctionName
- Direct Known Subclasses:
MultiArrayFunctionName
Synthetic/dynamic method based on WAT code (WASM in text form).
-
Field Summary
FieldsFields inherited from class FunctionName
className, fullName, methodName, signature, signatureName -
Constructor Summary
ConstructorsConstructorDescriptionWatCodeSyntheticFunctionName(String name, String code, AnyType... signatureTypes) Create a new instance.WatCodeSyntheticFunctionName(String className, String name, String signature, String code, AnyType... signatureTypes) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCode()Get Wat code, can be overridden.protected WasmCodeBuildergetCodeBuilder(WatParser watParser) Get the WasmCodeBuilder for the synthetic WASM code.protected booleanIf this function has WASM code or if this function is a import with JavaScript code.Methods inherited from class ArraySyntheticFunctionName
getSignatureMethods inherited from class SyntheticFunctionName
getAnnotation, istStaticMethods inherited from class FunctionName
equals, hashCode
-
Field Details
-
code
-
-
Constructor Details
-
WatCodeSyntheticFunctionName
-
WatCodeSyntheticFunctionName
public WatCodeSyntheticFunctionName(String className, String name, String signature, @Nonnull String code, AnyType... signatureTypes) Create a new instance.- Parameters:
className- the Java class namename- the function namesignature- the string signaturecode- the WAT code (WASM in text form)signatureTypes- the method signature, first the parameters, then null and the the return types
-
-
Method Details
-
getCode
-
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
-
getCodeBuilder
Get the WasmCodeBuilder for the synthetic WASM code.- Overrides:
getCodeBuilderin classSyntheticFunctionName- Parameters:
watParser- a helping WatParser- Returns:
- the code
-