Class SyntheticFunctionName
java.lang.Object
de.inetsoftware.jwebassembly.module.FunctionName
de.inetsoftware.jwebassembly.module.SyntheticFunctionName
- Direct Known Subclasses:
ArraySyntheticFunctionName
,ImportSyntheticFunctionName
Synthetic/dynamic method.
-
Field Summary
Fields inherited from class de.inetsoftware.jwebassembly.module.FunctionName
className, fullName, methodName, signature, signatureName
-
Constructor Summary
ConstructorsConstructorDescriptionSyntheticFunctionName
(String className, String name, String signature) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the synthetic annotation of a import function.protected WasmCodeBuilder
getCodeBuilder
(WatParser watParser) Get the WasmCodeBuilder for the synthetic WASM code.protected abstract boolean
If this function has WASM code or if this function is a import with JavaScript code.protected boolean
Is a static method or if it need a this parameter.Methods inherited from class de.inetsoftware.jwebassembly.module.FunctionName
equals, getSignature, hashCode
-
Constructor Details
-
SyntheticFunctionName
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 types
-
-
Method Details
-
hasWasmCode
protected abstract boolean hasWasmCode()If this function has WASM code or if this function is a import with JavaScript code.- Returns:
- true, if WASM code
-
getCodeBuilder
Get the WasmCodeBuilder for the synthetic WASM code.- Parameters:
watParser
- a helping WatParser- Returns:
- the code
-
getAnnotation
Get the synthetic annotation of a import function.- Returns:
- the annotation
-
istStatic
protected boolean istStatic()Is a static method or if it need a this parameter.- Returns:
- true, id static
-