Class MultiArrayFunctionName
java.lang.Object
de.inetsoftware.jwebassembly.module.FunctionName
de.inetsoftware.jwebassembly.module.SyntheticFunctionName
de.inetsoftware.jwebassembly.module.ArraySyntheticFunctionName
de.inetsoftware.jwebassembly.module.WatCodeSyntheticFunctionName
de.inetsoftware.jwebassembly.module.MultiArrayFunctionName
Synthetic functions for creating multidimensional dimensional arrays
-
Field Summary
FieldsFields inherited from class FunctionName
className, fullName, methodName, signature, signatureName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringcreateName(int dim, ArrayType type) Create the unique name depends on dimension and typeprivate static AnyType[]createSignature(int dim, ArrayType type) Create the signature of the function.protected WasmCodeBuildergetCodeBuilder(WatParser watParser) Get the WasmCodeBuilder for the synthetic WASM code.private static ValueTypegetElementType(ArrayType type) The element type of the arrayMethods inherited from class WatCodeSyntheticFunctionName
getCode, hasWasmCodeMethods inherited from class ArraySyntheticFunctionName
getSignatureMethods inherited from class SyntheticFunctionName
getAnnotation, istStaticMethods inherited from class FunctionName
equals, hashCode
-
Field Details
-
dim
private int dim -
type
-
-
Constructor Details
-
MultiArrayFunctionName
MultiArrayFunctionName(int dim, ArrayType type) Create a new instance- Parameters:
dim- the count of dimensions, should be >= 2type- the full type of the allocated array
-
-
Method Details
-
getElementType
-
createName
-
createSignature
-
getCodeBuilder
Get the WasmCodeBuilder for the synthetic WASM code.- Overrides:
getCodeBuilderin classWatCodeSyntheticFunctionName- Parameters:
watParser- a helping WatParser- Returns:
- the code
-