Removed unused anno and private
This commit is contained in:
parent
d7e92845b5
commit
5312d33700
|
@ -13,10 +13,8 @@ import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注;
|
||||||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||||
public final class BãßBȍőnLoad殭屍 {
|
public final class BãßBȍőnLoad殭屍 {
|
||||||
|
|
||||||
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
private static final BãßBȍőnSpiderʸᴰ BLACK_WIDOW = new BãßBȍőnSpiderʸᴰ();
|
||||||
private static final BãßBȍőnSpiderʸᴰ BLACK_WIDOW = new BãßBȍőnSpiderʸᴰ();
|
private static final Set<Class<?>> SCANNED = new LinkedHashSet<>();
|
||||||
private static final Set<Class<?>> SCANNED = new LinkedHashSet<>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
protected static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void CAST_BONE_MAGIC(BãßBȍőn<T,K> boon, Consumer<BãßBȍőnCoffinOpenʸᴰ<K>>...coffinFillers) {
|
protected static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void CAST_BONE_MAGIC(BãßBȍőn<T,K> boon, Consumer<BãßBȍőnCoffinOpenʸᴰ<K>>...coffinFillers) {
|
||||||
|
@ -28,21 +26,21 @@ public final class BãßBȍőnLoad殭屍 {
|
||||||
for (BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase:BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.values()) {
|
for (BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase:BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.values()) {
|
||||||
initPrivate(phase, boon);
|
initPrivate(phase, boon);
|
||||||
}
|
}
|
||||||
initSpiderEggs(boon, bbc);
|
initSpiderEggs(boon);
|
||||||
initSpiderWires(boon, bbc);
|
initSpiderWires(boon);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initSpiderWires(Object boon, BãßBȍőnCoffinOpenʸᴰ<?> bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
private static void initSpiderWires(Object boon) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||||
//System.out.println("SCAN-BOON-FIELD: "+boon.getClass().getSimpleName());
|
//System.out.println("SCAN-BOON-FIELD: "+boon.getClass().getSimpleName());
|
||||||
for (Field m:boon.getClass().getDeclaredFields()) {
|
for (Field m:boon.getClass().getDeclaredFields()) {
|
||||||
if (!m.isAnnotationPresent(BãßBȍőnSpiderWire注.class)) {
|
if (!m.isAnnotationPresent(BãßBȍőnSpiderWire注.class)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BãßBȍőnSpiderWire注 anno = m.getAnnotation(BãßBȍőnSpiderWire注.class);
|
BãßBȍőnSpiderWire注 anno = m.getAnnotation(BãßBȍőnSpiderWire注.class);
|
||||||
SpiderSilk silkRoad = Ꝑŕḯṿª₮ḕ.BLACK_WIDOW.silkRoad(m.getType());
|
SpiderSilk silkRoad = BLACK_WIDOW.silkRoad(m.getType());
|
||||||
Object bean = silkRoad.senseWire(boon, anno.name(), anno.description());
|
Object bean = silkRoad.senseWire(boon, anno.name(), anno.description());
|
||||||
//System.out.println("type: "+ m.getType() +" wth name: "+anno.name()+" of boon: "+boon.getClass());
|
//System.out.println("type: "+ m.getType() +" wth name: "+anno.name()+" of boon: "+boon.getClass());
|
||||||
|
|
||||||
|
@ -51,7 +49,7 @@ public final class BãßBȍőnLoad殭屍 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void initSpiderEggs(BãßBȍőn<T,K> boon, BãßBȍőnCoffinOpenʸᴰ<?> bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
private static <T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> void initSpiderEggs(BãßBȍőn<T,K> boon) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||||
for (Class<?> interfaceClass:walkInterfaces(boon.getClass(), new LinkedHashSet<>())) {
|
for (Class<?> interfaceClass:walkInterfaces(boon.getClass(), new LinkedHashSet<>())) {
|
||||||
for (Class<?> declaredClass:((Class<?>) interfaceClass).getDeclaredClasses()) {
|
for (Class<?> declaredClass:((Class<?>) interfaceClass).getDeclaredClasses()) {
|
||||||
initSpiderEggRegistrate(boon, declaredClass);
|
initSpiderEggRegistrate(boon, declaredClass);
|
||||||
|
@ -66,10 +64,10 @@ public final class BãßBȍőnLoad殭屍 {
|
||||||
if (!BãßBȍőnꝐŕḯṿª₮ḕ.class.isAssignableFrom(declaredClass)) {
|
if (!BãßBȍőnꝐŕḯṿª₮ḕ.class.isAssignableFrom(declaredClass)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Ꝑŕḯṿª₮ḕ.SCANNED.contains(declaredClass)) {
|
if (SCANNED.contains(declaredClass)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Ꝑŕḯṿª₮ḕ.SCANNED.add(declaredClass);
|
SCANNED.add(declaredClass);
|
||||||
for (Method m:declaredClass.getDeclaredMethods()) {
|
for (Method m:declaredClass.getDeclaredMethods()) {
|
||||||
if (!m.isAnnotationPresent(BãßBȍőnSpiderEgg注.class)) {
|
if (!m.isAnnotationPresent(BãßBȍőnSpiderEgg注.class)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -77,7 +75,7 @@ public final class BãßBȍőnLoad殭屍 {
|
||||||
//System.out.println("annoEgg: "+boon.getClass().getSimpleName()+"."+boon+" from: "+declaredClass.getName()+" m="+m.toGenericString());
|
//System.out.println("annoEgg: "+boon.getClass().getSimpleName()+"."+boon+" from: "+declaredClass.getName()+" m="+m.toGenericString());
|
||||||
|
|
||||||
m.setAccessible(true);
|
m.setAccessible(true);
|
||||||
Ꝑŕḯṿª₮ḕ.BLACK_WIDOW.registrateEgg(m.getReturnType(), m);
|
BLACK_WIDOW.registrateEgg(m.getReturnType(), m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhas
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInit注;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInit注;
|
||||||
|
|
||||||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||||
@BãßBȍőnAnnotation注(optional = {BãßBȍőnPackage注.class})
|
|
||||||
public interface BãßBȍőnAnnotationʸᴰ<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> extends BãßBȍőn<T, K> {
|
public interface BãßBȍőnAnnotationʸᴰ<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> extends BãßBȍőn<T, K> {
|
||||||
|
|
||||||
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||||||
|
|
Loading…
Reference in a new issue