JPP: Renamed enter pie to cake
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 54s

This commit is contained in:
Willem Cazander 2026-03-22 14:34:49 +01:00
parent ca4fc5619b
commit d78bd5ff46
15 changed files with 94 additions and 94 deletions

View file

@ -34,15 +34,15 @@ import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.CakeTalkT
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public final class EnterPieBadTasteException extends RuntimeException {
public final class CakeBadTasteException extends RuntimeException {
private static final long serialVersionUID = 1L; //ᒢℭỗᶇṧⱦᶏꬼȶʂ.LONGᣟᐧᣟONE;
public EnterPieBadTasteException(final String message) {
public CakeBadTasteException(final String message) {
super(message);
}
public EnterPieBadTasteException(final Class<? extends CakeTalkText> msgId, final Object...args) {
public CakeBadTasteException(final Class<? extends CakeTalkText> msgId, final Object...args) {
super(CakeTalkTextLocalizer.format(msgId, args));
}
}

View file

@ -64,25 +64,25 @@ import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᔆᐪᓫ.TasteCake
@TasteCakeDoughFrostGlitter注(eat = @FoodGlitter注(prefix = "current"), eatPlateClean = 4)
@TasteCakeDoughMarrowGlitter注(eat = @FoodGlitter注(prefix = "ₚᵣₐᵧ", postfix = ""))
@TasteCakeDoughMarrowGlitter注(eat = @FoodGlitter注(prefix = "instance"), tasteStatic = true, eatPlateClean = 1)
public final class EnterPieCuisine {
public final class CakeCuisine {
private EnterPieDessert currentDessert;
private CakeDessert currentDessert;
private FoodSelect注 currentMatch = null;
private Annotation currentAnnotation = null;
private final Set<Class<?>> currentClasses = new HashSet<>();
private EnterPieCuisine() {
private CakeCuisine() {
// TODO add full testing + clean up: addTasteCheck(new EnterPieDessertMenu... and ₚᵣₐᵧMessageੴ
// TODO: cleanup all: String location = "@" + xxx.annotationType().getSimpleName();
}
static public EnterPieCuisine instanceᴺᵉʷ() {
return new EnterPieCuisine();
static public CakeCuisine instanceᴺᵉʷ() {
return new CakeCuisine();
}
public synchronized EnterPieDessert ₚᵣₐᵧToੴ(Class<?> weddingCake) {
public synchronized CakeDessert ₚᵣₐᵧToੴ(Class<?> weddingCake) {
currentClasses.clear();
currentDessert = new EnterPieDessert(weddingCake);
currentDessert = new CakeDessert(weddingCake);
ₚᵣₐᵧᐧᣛᣞᣞᣞᣛᐧੴ(weddingCake);
for (Class<?> inner : KaasChef.that().boilInterfaces(weddingCake)) {
ₚᵣₐᵧᐧᣛᣞᣞᣞᣛᐧੴ(inner);
@ -138,9 +138,9 @@ public final class EnterPieCuisine {
int parentCount = node.getInterfaces().length;
if (parentCount != gutterCandlelier.burnParents()) {
String location = "@" + gutterCandlelier.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class, parentCount, gutterCandlelier.burnParents(), location, node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class, parentCount, gutterCandlelier.burnParents(), location, node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, parentCount, currentMatch, gutterCandlelier, EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, parentCount, currentMatch, gutterCandlelier, CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class));
}
}
@ -176,7 +176,7 @@ public final class EnterPieCuisine {
for (Method marrow : node.getDeclaredMethods()) {
if (marrow.isSynthetic()) { // Synthetic suger is bad for your brain
if (marrowGlitter.preventToothDecay()) {
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜSyntheticSuger.class, marrow);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜSyntheticSuger.class, marrow);
}
continue;
}
@ -192,9 +192,9 @@ public final class EnterPieCuisine {
if (marrowGlitter.eatPlateClean() > 0) {
if (plateFoodCount != marrowGlitter.eatPlateClean()) {
String location = "@" + marrowGlitter.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class, plateFoodCount, marrowGlitter.eatPlateClean(), location, node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class, plateFoodCount, marrowGlitter.eatPlateClean(), location, node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, marrowGlitter.eatPlateClean(), currentMatch, marrowGlitter, EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, marrowGlitter.eatPlateClean(), currentMatch, marrowGlitter, CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class));
}
}
@ -224,9 +224,9 @@ public final class EnterPieCuisine {
int parentCount = node.getInterfaces().length;
if (parentCount != frostCandlelier.burnParents()) {
String location = "@" + frostCandlelier.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class, parentCount, frostCandlelier.burnParents(), location, node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class, parentCount, frostCandlelier.burnParents(), location, node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, parentCount, currentMatch, frostCandlelier, EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, parentCount, currentMatch, frostCandlelier, CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class));
}
}
@ -252,9 +252,9 @@ public final class EnterPieCuisine {
if (frostGlitter.eatPlateClean() > 0) {
if (plateFoodCount != frostGlitter.eatPlateClean()) {
String location = "@" + frostGlitter.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class, plateFoodCount, frostGlitter.eatPlateClean(), location, frost);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class, plateFoodCount, frostGlitter.eatPlateClean(), location, frost);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, frostGlitter.eatPlateClean(), currentMatch, frostGlitter, EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, frostGlitter.eatPlateClean(), currentMatch, frostGlitter, CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class));
}
}
@ -274,9 +274,9 @@ public final class EnterPieCuisine {
if (ringGlitter.eatPlateClean() > 0) {
if (plateFoodCount != ringGlitter.eatPlateClean()) {
String location = "@" + ringGlitter.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class, plateFoodCount, ringGlitter.eatPlateClean(), location, node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class, plateFoodCount, ringGlitter.eatPlateClean(), location, node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, ringGlitter.eatPlateClean(), currentMatch, ringGlitter, EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, ringGlitter.eatPlateClean(), currentMatch, ringGlitter, CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEatPlateClean.class));
}
}
@ -300,24 +300,24 @@ public final class EnterPieCuisine {
int parentCount = node.getInterfaces().length;
if (parentCount != ringCandlelier.burnParents()) {
String location = "@" + ringCandlelier.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class, parentCount, ringCandlelier.burnParents(), location, node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class, parentCount, ringCandlelier.burnParents(), location, node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, parentCount, currentMatch, ringCandlelier, EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, parentCount, currentMatch, ringCandlelier, CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜburnParents.class));
}
}
private void ₚᵣₐᵧForCakeRingSparklerੴ(Class<?> node, TasteCakeRingSparkler注 ringSparkler) {
if (ringSparkler.contains().length > 0) {
if (Arrays.asList(ringSparkler.contains()).stream().filter(v -> v.isAssignableFrom(node)).count() == 0) {
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContains.class, ₚᵣₐᵧEnjoyੴ(ringSparkler.contains()), node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContains.class, ₚᵣₐᵧEnjoyੴ(ringSparkler.contains()), node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, null, currentMatch, ringSparkler, EnterPieCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContains.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, null, currentMatch, ringSparkler, CakeCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContains.class));
}
if (ringSparkler.containsNot().length > 0) {
if (Arrays.asList(ringSparkler.containsNot()).stream().filter(v -> v.isAssignableFrom(node)).count() > 0) {
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContainsNot.class, ₚᵣₐᵧEnjoyੴ(ringSparkler.containsNot()), node);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContainsNot.class, ₚᵣₐᵧEnjoyੴ(ringSparkler.containsNot()), node);
}
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, null, currentMatch, ringSparkler, EnterPieCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContainsNot.class));
currentDessert.addTasteCheck(new CakeDessertMenu(node, null, currentMatch, ringSparkler, CakeCuisineꝹᵀˣᵀ.ꝹRingSparklerError.ₜₓₜContainsNot.class));
}
}
@ -506,7 +506,7 @@ public final class EnterPieCuisine {
private void ₚᵣₐᵧChurchੴ(Class<?> node, Object matchValue, Class<? extends CakeTalkText> tasteMessage, Class<? extends CakeTalkText> match, Class<? extends CakeTalkText> matchType, boolean checked) {
if (checked) {
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, matchValue, currentMatch, currentAnnotation, match));
currentDessert.addTasteCheck(new CakeDessertMenu(node, matchValue, currentMatch, currentAnnotation, match));
return;
}
throw ₚᵣₐᵧMessageੴ(tasteMessage, match, matchType, matchValue, node);
@ -527,7 +527,7 @@ public final class EnterPieCuisine {
for (String checkArg : args) {
if (checkArg.isEmpty()) {
String location = "@" + loc.annotationType().getSimpleName();
throw new EnterPieBadTasteException(EnterPieCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEmptyArgument.class, location, ₚᵣₐᵧEnjoyੴ(args), target);
throw new CakeBadTasteException(CakeCuisineꝹᵀˣᵀ.ꝹPrayChurchError.ₜₓₜEmptyArgument.class, location, ₚᵣₐᵧEnjoyੴ(args), target);
}
if (food.matchNeedle(matchValue, checkArg)) {
isValid = true;
@ -535,7 +535,7 @@ public final class EnterPieCuisine {
}
}
if (isValid) {
currentDessert.addTasteCheck(new EnterPieDessertMenu(node, ₚᵣₐᵧEnjoyੴ(args), currentMatch, loc, food.nameBabel()));
currentDessert.addTasteCheck(new CakeDessertMenu(node, ₚᵣₐᵧEnjoyੴ(args), currentMatch, loc, food.nameBabel()));
} else {
throw ₚᵣₐᵧMessageੴ(tasteMessage, food.nameBabel(), FoodTasteMessageꝹᵀˣᵀ.ₜₓₜSlugMissing.class, ₚᵣₐᵧEnjoyੴ(args), target);
}
@ -550,9 +550,9 @@ public final class EnterPieCuisine {
}
// Got a bit messy as we have 2 types for messages in one so not full happy current argument selection here;
private EnterPieBadTasteException ₚᵣₐᵧMessageੴ(Class<? extends CakeTalkText> tasteMessage, Class<? extends CakeTalkText> match, Class<? extends CakeTalkText> matchType, Object matchValue, Object target) {
private CakeBadTasteException ₚᵣₐᵧMessageੴ(Class<? extends CakeTalkText> tasteMessage, Class<? extends CakeTalkText> match, Class<? extends CakeTalkText> matchType, Object matchValue, Object target) {
FoodTasteMessage注 message = currentAnnotation.annotationType().getAnnotation(FoodTasteMessage注.class);
return new EnterPieBadTasteException(tasteMessage,
return new CakeBadTasteException(tasteMessage,
target,
message.tasteGroup(),
message.tasteType(),

View file

@ -35,7 +35,7 @@ import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.嘴ᗮᙿ
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public sealed interface EnterPieCuisineꝹᵀˣᵀ /*implements Duyts.Ꝺᴮᵒᵈʸ.ₐₜClubZeroꝹᵀˣᵀ<EnterPieCuisine>*/ extends CakeTalkText {
public sealed interface CakeCuisineꝹᵀˣᵀ extends CakeTalkText {
;
/* RM-ED: DuytsDoc is moved to jpp2 and thus can't be used in jpp1 module
public enum ꝹDocTypeˢᵗᵘᵖ implements Duyts.Ꝺₛₜᵤₚ.ꝹDocTypeˢᵗᵘᵖ {
@ -56,7 +56,7 @@ public sealed interface EnterPieCuisineꝹᵀˣᵀ /*implements Duyts.Ꝺᴮᵒ
}
*/
// pre JDK17 public enum ꝹPrayChurchError implements Duyts.Ꝺₛₜᵤₚ.ꝹẞlueTextˢᵗᵘᵖ {
public sealed interface ꝹPrayChurchError extends EnterPieCuisineꝹᵀˣᵀ {
public sealed interface ꝹPrayChurchError extends CakeCuisineꝹᵀˣᵀ {
;
@CakeTalkText注( = 嘴ᗮᙿᗮ.English.class, txt = "Pray church rejects empty argument of %1$s in %2$s on %3$s")
@CakeTalkText注( = 嘴ᗮᙿᗮ.Dutch.class, txt = "Bid dat de kerk het lege argument van %1$s in %2$s op %3$s verwerpt")
@ -82,7 +82,7 @@ public sealed interface EnterPieCuisineꝹᵀˣᵀ /*implements Duyts.Ꝺᴮᵒ
@CakeTalkText注( = 嘴ᗮᙿᗮ.Hindi.class, txt = "प्रार्थना चर्च कैंडलेलियर गलत बर्निंग माता-पिता की संख्या को %1$s की आवश्यकता है %2$s को %3$s से %4$s पर")
public enum ₜₓₜburnParents implements ꝹPrayChurchError {}
}
public sealed interface ꝹRingSparklerError extends EnterPieCuisineꝹᵀˣᵀ {
public sealed interface ꝹRingSparklerError extends CakeCuisineꝹᵀˣᵀ {
;
@CakeTalkText注( = 嘴ᗮᙿᗮ.English.class, txt = "Cake ring sparkler missing %1$s on %2$s")
@CakeTalkText注( = 嘴ᗮᙿᗮ.Dutch.class, txt = "Taartring sterretje ontbreekt %1$s op %2$s")

View file

@ -35,12 +35,12 @@ import java.util.Objects;
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public final class EnterPieDessert {
public final class CakeDessert {
private final Class<?> weddingCake;
private final List<EnterPieDessertMenu> desserts = new ArrayList<>();
private final List<CakeDessertMenu> desserts = new ArrayList<>();
protected EnterPieDessert(final Class<?> weddingCake) {
protected CakeDessert(final Class<?> weddingCake) {
this.weddingCake = weddingCake;
}
@ -48,11 +48,11 @@ public final class EnterPieDessert {
return weddingCake;
}
public List<EnterPieDessertMenu> getMenu() {
public List<CakeDessertMenu> getMenu() {
return desserts;
}
protected void addTasteCheck(final EnterPieDessertMenu dessertMenu) {
protected void addTasteCheck(final CakeDessertMenu dessertMenu) {
desserts.add(Objects.requireNonNull(dessertMenu));
}

View file

@ -35,7 +35,7 @@ import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᒻᑊᑉ.CakeTalkT
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public final class EnterPieDessertMenu {
public final class CakeDessertMenu {
private final Class<?> node;
private final Object matchValue;
@ -43,7 +43,7 @@ public final class EnterPieDessertMenu {
private final Annotation checkTaster;
private final Class<? extends CakeTalkText> checkMessage;
protected EnterPieDessertMenu(final Class<?> node, final Object matchValue, final FoodSelect注 matchFood, final Annotation checkTaster, final Class<? extends CakeTalkText> checkMessage) {
protected CakeDessertMenu(final Class<?> node, final Object matchValue, final FoodSelect注 matchFood, final Annotation checkTaster, final Class<? extends CakeTalkText> checkMessage) {
this.node = node;
this.matchValue = matchValue;
this.matchFood = matchFood;

View file

@ -41,7 +41,7 @@ import ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ.ᐪᣔᔆᐪᓫ.TasteCake
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
@TasteCakeRingGlitter注(eat = @FoodGlitter注(prefix = "Ιcing", postfix = {"ᴰᴺᴬ", "ᴮᵒᵈʸ", "ₛₜᵤₚ", "ₚᵢₑ"}), eatPlateClean = 4)
public enum EnterPie {
public enum CakeTower {
;
@TasteCakeRingGlitter注(eat = @FoodGlitter注(prefix = ""))

View file

@ -30,12 +30,12 @@ package ᒢᣘᐧᣟ.ᑊᑉᒻᣔᔆᔆ.ᒼᣔᑊᑉᓫ;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class EnterPieCuisineTest {
public class CakeCuisineTest {
@Test
public void testEnterPieSize() {
EnterPieCuisine cuisine = EnterPieCuisine.instanceᴺᵉʷ();
EnterPieDessert dessert = cuisine.ₚᵣₐᵧToੴ(EnterPie.class);
CakeCuisine cuisine = CakeCuisine.instanceᴺᵉʷ();
CakeDessert dessert = cuisine.ₚᵣₐᵧToੴ(CakeTower.class);
Assertions.assertNotNull(dessert);
Assertions.assertTrue(dessert.getMenu().size() > 10);
}