mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
more Class API replacement stubs
This commit is contained in:
parent
6520370e02
commit
3508ed3e19
@ -171,6 +171,26 @@ class ReplacementForClass<T> {
|
|||||||
"return" )
|
"return" )
|
||||||
private static native int getIntFromMemory( int pos );
|
private static native int getIntFromMemory( int pos );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replacement of the Java methods forName(String)
|
||||||
|
*
|
||||||
|
* @param className
|
||||||
|
* the fully qualified name of the desired class.
|
||||||
|
* @return the {@code Class} object for the class with the specified name.
|
||||||
|
*/
|
||||||
|
public static Class<?> forName( String className ) throws ClassNotFoundException {
|
||||||
|
throw new ClassNotFoundException( className ); // TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replacement of the Java methods newInstance()
|
||||||
|
*
|
||||||
|
* @return a newly allocated instance of the class represented by this object.
|
||||||
|
*/
|
||||||
|
public T newInstance() throws InstantiationException, IllegalAccessException {
|
||||||
|
throw new InstantiationException( getName() ); // TODO
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replacement of the Java methods isInstance()
|
* Replacement of the Java methods isInstance()
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user