mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Add some stub code
This commit is contained in:
parent
6d89fa8eca
commit
712ce90393
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user