diff --git a/src/de/inetsoftware/jwebassembly/module/nativecode/ReplacementForClass.java b/src/de/inetsoftware/jwebassembly/module/nativecode/ReplacementForClass.java index b5c3a6c..6213229 100644 --- a/src/de/inetsoftware/jwebassembly/module/nativecode/ReplacementForClass.java +++ b/src/de/inetsoftware/jwebassembly/module/nativecode/ReplacementForClass.java @@ -325,6 +325,13 @@ class ReplacementForClass { 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 { 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 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 { 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} *