26 lines
580 B
Java
26 lines
580 B
Java
package iri;
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
public class JLCGetDecMethods2 extends FormattingHelper {
|
|
|
|
public String run() throws Exception {
|
|
Method m = Class.class.getMethod("getDeclaredMethods");
|
|
Method[] m2 = (Method[]) m.invoke(JLCGetDecMethods2.class);
|
|
// Method m2 = (Method) m.invoke(JLCGetDecMethod.class, "foo", new Class[] { String.class, Integer.TYPE });
|
|
return format(m2);
|
|
}
|
|
|
|
public void foo() {
|
|
|
|
}
|
|
|
|
public void bar(String s) {
|
|
}
|
|
|
|
public static void main(String[] argv) throws Exception {
|
|
System.out.println(new JLCGetDecMethods2().run());
|
|
}
|
|
|
|
}
|