mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
more Class API replacement stubs
This commit is contained in:
parent
6520370e02
commit
3508ed3e19
@ -171,6 +171,26 @@ class ReplacementForClass<T> {
|
||||
"return" )
|
||||
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()
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user