Class ImportSyntheticFunctionName
- java.lang.Object
-
- de.inetsoftware.jwebassembly.module.FunctionName
-
- de.inetsoftware.jwebassembly.module.SyntheticFunctionName
-
- de.inetsoftware.jwebassembly.module.ImportSyntheticFunctionName
-
class ImportSyntheticFunctionName extends SyntheticFunctionName
Synthetic/dynamic method based on import annotation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<java.lang.String,java.lang.Object>
importAnannotation
-
Fields inherited from class de.inetsoftware.jwebassembly.module.FunctionName
className, fullName, methodName, signature, signatureName
-
-
Constructor Summary
Constructors Constructor Description ImportSyntheticFunctionName(java.lang.String className, java.lang.String name, java.lang.String signature, java.util.function.Function<java.lang.String,java.lang.Object> importAnannotation)
create a new instance
-
Method Summary
All Methods Instance 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 boolean
hasWasmCode()
If this function has WASM code or if this function is a import with JavaScript code.-
Methods inherited from class de.inetsoftware.jwebassembly.module.SyntheticFunctionName
getCodeBuilder, istStatic
-
Methods inherited from class de.inetsoftware.jwebassembly.module.FunctionName
equals, getSignature, hashCode
-
-
-
-
Constructor Detail
-
ImportSyntheticFunctionName
ImportSyntheticFunctionName(java.lang.String className, java.lang.String name, java.lang.String signature, java.util.function.Function<java.lang.String,java.lang.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 Detail
-
hasWasmCode
protected boolean hasWasmCode()
If this function has WASM code or if this function is a import with JavaScript code.- Specified by:
hasWasmCode
in classSyntheticFunctionName
- Returns:
- true, if WASM code
-
getAnnotation
protected java.util.function.Function<java.lang.String,java.lang.Object> getAnnotation()
Get the synthetic annotation of a import function.- Overrides:
getAnnotation
in classSyntheticFunctionName
- Returns:
- the annotation
-
-