From e5a77e2574045d53875abbe007aea0544d0d6f95 Mon Sep 17 00:00:00 2001 From: ix0rai Date: Wed, 8 Jan 2025 17:41:37 -0600 Subject: [PATCH] add javadoc for TypeDescriptor (fixes #246) --- .../representation/TypeDescriptor.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java b/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java index da232ecaa..e10cb5787 100644 --- a/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java +++ b/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java @@ -13,6 +13,36 @@ import java.util.Map; import java.util.function.UnaryOperator; +/** + * Represents a Java type descriptor. + * Type descriptors are used to represent the types of elements such as arguments, fields, and method returns. + *

+ * Type descriptors can be formatted two different ways: + *

+ *

+ * + * When representing an array type in a type descriptor, the descriptor is prefixed by {@code [}, such as {@code [I} or {@code [Lpackage/Class;}. + */ public class TypeDescriptor implements Translatable { protected final String desc;