aboutsummaryrefslogtreecommitdiff
path: root/src/MethodClass.java
blob: 61c5affe6c66db08824d3ae444ca5faff5480a72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
 */