| 5 | import java.util.HashMap; |
| 6 | |
| 7 | public class ClassInfo { |
| 8 | |
| 9 | public final Class<?> clazz; |
| 10 | public final HashMap<String, Method> methods; |
| 11 | public final HashMap<String, Field> fields; |
| 12 | public final String className; |
| 13 | |
| 14 | public ClassInfo(Class<?> clazz, String className) { |
| 15 | methods = new HashMap<String, Method>(); |
| 16 | fields = new HashMap<String, Field>(); |
| 17 | this.clazz = clazz; |
| 18 | this.className = className; |
| 19 | } |
| 20 | |
| 21 | public void addCachedMethod(String key, Method method) { |
| 22 | methods.put(key, method); |
| 23 | } |
| 24 | |
| 25 | public Method getCachedMethod(String key) { |
| 26 | return methods.get(key); |
| 27 | } |
| 28 | |
| 29 | public void addCachedField(String key, Field field) { |
| 30 | fields.put(key, field); |
| 31 | } |
| 32 | |
| 33 | public Field getCachedField(String key) { |
| 34 | return fields.get(key); |
| 35 | } |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected