aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/mapper/tools/data
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-08-27 01:55:04 +0200
committer zaaarf <zaaarf@proton.me>2023-08-27 01:55:04 +0200
commit787fea3dd108a4329a9afe3b1e8dfa6722607b9d (patch)
tree884e2df25e6df6530e1dda437256871905619f15 /src/main/java/ftbsc/lll/mapper/tools/data
parent539be7798063b264b5f8bb8b5226f8df9bce158d (diff)
feat: added getRawMappings(), rewritten MultiMapper for efficiency0.2.2
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/tools/data')
-rw-r--r--src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java b/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java
index 0f9f25e..cdcec4d 100644
--- a/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java
+++ b/src/main/java/ftbsc/lll/mapper/tools/data/ClassData.java
@@ -115,4 +115,20 @@ public class ClassData {
throw new MappingNotFoundException("field", String.format("%s.%s", this.name, fieldName));
else return data;
}
+
+ /**
+ * Gets the underlying {@link Map} for {@link MethodData}.
+ * @return a {@link Map} tying each {@link MethodSignature} to its {@link MethodData}
+ */
+ public Map<MethodSignature, MethodData> getMethods() {
+ return this.methods;
+ }
+
+ /**
+ * Gets the underlying {@link Map} for {@link FieldData}.
+ * @return a {@link Map} tying each field name to its {@link FieldData}
+ */
+ public Map<String, FieldData> getFields() {
+ return this.fields;
+ }
} \ No newline at end of file