MCPcopy Create free account
hub / github.com/TIIEHenry/HyperOSRuntime / ClassInfo

Class ClassInfo

app/src/main/java/nota/reflect/ClassInfo.java:7–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import java.util.HashMap;
6
7public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected