Add some stub code

This commit is contained in:
Volker Berlin 2021-05-02 14:47:39 +02:00
parent 6d89fa8eca
commit 712ce90393

View File

@ -29,6 +29,8 @@ import static de.inetsoftware.jwebassembly.module.TypeManager.TYPE_DESCRIPTION_I
import static de.inetsoftware.jwebassembly.module.TypeManager.TYPE_DESCRIPTION_TYPE_NAME; import static de.inetsoftware.jwebassembly.module.TypeManager.TYPE_DESCRIPTION_TYPE_NAME;
import static de.inetsoftware.jwebassembly.module.TypeManager.VOID; import static de.inetsoftware.jwebassembly.module.TypeManager.VOID;
import java.lang.reflect.Method;
import de.inetsoftware.jwebassembly.api.annotation.Replace; import de.inetsoftware.jwebassembly.api.annotation.Replace;
import de.inetsoftware.jwebassembly.api.annotation.WasmTextCode; import de.inetsoftware.jwebassembly.api.annotation.WasmTextCode;
import de.inetsoftware.jwebassembly.module.TypeManager; import de.inetsoftware.jwebassembly.module.TypeManager;
@ -190,6 +192,12 @@ class ReplacementForClass {
return null; return null;
} }
/**
* Replacement of the Java methods getSuperclass()
*/
@WasmTextCode( "unreachable" ) // TODO
native Class getSuperclass();
/** /**
* Replacement of the native Java methods getComponentType() * Replacement of the native Java methods getComponentType()
*/ */
@ -198,6 +206,12 @@ class ReplacementForClass {
return classIdx >= 0 ? classConstant( classIdx ) : null; return classIdx >= 0 ? classConstant( classIdx ) : null;
} }
/**
* Replacement of the Java methods getDeclaredMethod()
*/
@WasmTextCode( "unreachable" ) // TODO
native Method getDeclaredMethod(String name, Class<?>... parameterTypes);
/** /**
* Replacement of the native Java methods * Replacement of the native Java methods
* *