[*] Rework registration of TweedExtensions

This commit is contained in:
2025-04-25 15:33:55 +02:00
parent c97f711c0b
commit 59f882bd12
27 changed files with 639 additions and 257 deletions

View File

@@ -22,9 +22,6 @@ public class PatchworkClassGenerator {
* Class version to use (Java 8)
*/
private static final int CLASS_VERSION = Opcodes.V1_8;
private static final String TARGET_PACKAGE = "de.siphalor.tweed5.core.generated.contextextensions";
private static final List<Type> DEFAULT_PATHWORK_INTERFACES
= Collections.singletonList(Type.getType(Patchwork.class));
private static final String INNER_EQUALS_METHOD_NAME = "patchwork$innerEquals";
@@ -609,6 +606,11 @@ public class PatchworkClassGenerator {
super("Invalid patchwork part class " + partClass.getName() + ": " + message);
this.partClass = partClass;
}
@Override
public String toString() {
return super.toString();
}
}
@Value
@@ -636,6 +638,11 @@ public class PatchworkClassGenerator {
stringBuilder.append("\n");
return stringBuilder.toString();
}
@Override
public String toString() {
return super.toString();
}
}
public static class GenerationException extends Exception {