aboutsummaryrefslogtreecommitdiff
path: root/src/MethodClass.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/MethodClass.java')
-rw-r--r--src/MethodClass.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/MethodClass.java b/src/MethodClass.java
new file mode 100644
index 0000000..61c5aff
--- /dev/null
+++ b/src/MethodClass.java
@@ -0,0 +1,27 @@
+/* */ import java.lang.reflect.Method;
+/* */
+/* */ public class MethodClass
+/* */ {
+/* */ Class cls;
+/* */
+/* */ public MethodClass(Class cls)
+/* */ {
+/* 12 */ this.cls = cls;
+/* */ }
+/* */ public Method getMethod(String name) {
+/* 15 */ for (Method m : this.cls.getMethods()) {
+/* 16 */ if (m.getName().equals(name)) {
+/* 17 */ return m;
+/* */ }
+/* */ }
+/* 20 */ return null;
+/* */ }
+/* */ public Class getCls() {
+/* 23 */ return this.cls;
+/* */ }
+/* */ }
+
+/* Location: Modulus.jar
+ * Qualified Name: MethodClass
+ * JD-Core Version: 0.6.2
+ */ \ No newline at end of file