mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
more method stubs from Class
This commit is contained in:
parent
56ac30b3b1
commit
a5e4b6a353
@ -325,6 +325,13 @@ class ReplacementForClass<T> {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the signers of this class.
|
||||
*/
|
||||
public Object[] getSigners() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replacement of the Java method getSimpleName()
|
||||
*
|
||||
@ -408,12 +415,49 @@ class ReplacementForClass<T> {
|
||||
return canonicalName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array containing {@code Method} objects reflecting all the
|
||||
* public methods of the class or interface represented by this {@code
|
||||
* Class} object
|
||||
*/
|
||||
@WasmTextCode( "unreachable" ) // TODO
|
||||
public native Method[] getMethods();
|
||||
|
||||
/**
|
||||
* Replacement of the Java method getMethod()
|
||||
*/
|
||||
@WasmTextCode( "unreachable" ) // TODO
|
||||
public native Method getMethod(String name, Class<?>... parameterTypes);
|
||||
|
||||
/**
|
||||
* Returns a {@code Constructor} object that reflects the specified
|
||||
* public constructor of the class represented by this {@code Class}
|
||||
* object.
|
||||
*/
|
||||
@WasmTextCode( "unreachable" ) // TODO
|
||||
public native Constructor<T> getConstructor(Class<?>... parameterTypes);
|
||||
|
||||
/**
|
||||
* Returns an array of {@code Field} objects reflecting all the fields
|
||||
*/
|
||||
@WasmTextCode( "unreachable" ) // TODO
|
||||
public native Field[] getDeclaredFields();
|
||||
|
||||
/**
|
||||
* Returns an array containing {@code Method} objects reflecting all the
|
||||
* declared methods of the class or interface represented by this {@code
|
||||
* Class} object
|
||||
*/
|
||||
@WasmTextCode( "unreachable" ) // TODO
|
||||
public native Method[] getDeclaredMethods();
|
||||
|
||||
/**
|
||||
* Returns an array of {@code Constructor} objects reflecting all the
|
||||
* constructors declared by the class represented by this
|
||||
*/
|
||||
@WasmTextCode( "unreachable" ) // TODO
|
||||
public native Constructor<?>[] getDeclaredConstructors();
|
||||
|
||||
/**
|
||||
* Replacement of the Java method getDeclaredField()
|
||||
*/
|
||||
@ -439,6 +483,13 @@ class ReplacementForClass<T> {
|
||||
return null; //TODO
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@code ProtectionDomain} of this class.
|
||||
*/
|
||||
public java.security.ProtectionDomain getProtectionDomain() {
|
||||
return new java.security.ProtectionDomain(null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Replacement of the native Java method {@link Class#getPrimitiveClass}
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user