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