Skip to content

Commit

Permalink
tuple39
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrimatti committed Jan 16, 2024
1 parent c5d4980 commit 59b4ceb
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ public Class<? extends Apply> getClassForMethods(int argCount) {
case 36: return MetaMethods.M36.class;
case 37: return MetaMethods.M37.class;
case 38: return MetaMethods.M38.class;
case 39: return MetaMethods.M39.class;
}
throw new RuntimeException("Not implemented: F" + argCount);
}
Expand Down Expand Up @@ -458,6 +459,7 @@ public Class<? extends Apply> getClassForConstructors(int argCount) {
case 36: return MetaConstructors.C36.class;
case 37: return MetaConstructors.C37.class;
case 38: return MetaConstructors.C38.class;
case 39: return MetaConstructors.C39.class;
}
throw new RuntimeException("Not implemented: F" + argCount);
}
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/fi/solita/utils/meta/MetaConstructors.java
Original file line number Diff line number Diff line change
Expand Up @@ -981,4 +981,29 @@ public String toString() {
return doToString(clazz, argClasses);
}
}

public static abstract class C39<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,R> extends Function39<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,R> implements MetaConstructor<Tuple39<? extends T1,? extends T2,? extends T3,? extends T4,? extends T5,? extends T6,? extends T7,? extends T8,? extends T9,? extends T10,? extends T11,? extends T12,? extends T13,? extends T14,? extends T15,? extends T16,? extends T17,? extends T18,? extends T19,? extends T20,? extends T21,? extends T22,? extends T23,? extends T24,? extends T25,? extends T26,? extends T27,? extends T28,? extends T29,? extends T30,? extends T31,? extends T32,? extends T33,? extends T34,? extends T35,? extends T36,? extends T37,? extends T38,? extends T39>,R> {
private transient Constructor<R> $r;
private final Class<?> clazz;
private final Class<?>[] argClasses;
public C39(Class<?> clazz, Class<?>... argClasses) {
this.clazz = clazz;
this.argClasses = argClasses;
}
@Override
public List<Class<?>> getConstructorParameterTypes() {
return Collections.unmodifiableList(Arrays.asList(argClasses));
}
@Override
public Constructor<R> getMember() {
if ($r == null) {
$r = doGetMember(clazz, argClasses);
}
return $r;
}
@Override
public String toString() {
return doToString(clazz, argClasses);
}
}
}
26 changes: 26 additions & 0 deletions src/main/java/fi/solita/utils/meta/MetaMethods.java
Original file line number Diff line number Diff line change
Expand Up @@ -1007,4 +1007,30 @@ public final String toString() {
return doToString(clazz, name);
}
}

public static abstract class M39<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,R> extends Function39<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,T38,T39,R> implements MetaMethod<Tuple39<? extends T1,? extends T2,? extends T3,? extends T4,? extends T5,? extends T6,? extends T7,? extends T8,? extends T9,? extends T10,? extends T11,? extends T12,? extends T13,? extends T14,? extends T15,? extends T16,? extends T17,? extends T18,? extends T19,? extends T20,? extends T21,? extends T22,? extends T23,? extends T24,? extends T25,? extends T26,? extends T27,? extends T28,? extends T29,? extends T30,? extends T31,? extends T32,? extends T33,? extends T34,? extends T35,? extends T36,? extends T37,? extends T38,? extends T39>,R> {
private transient Method $r;
private final Class<?> clazz;
private final String name;
private final Class<?>[] argClasses;
public M39(Class<?> clazz, String name, Class<?>... argClasses) {
this.clazz = clazz;
this.name = name;
this.argClasses = argClasses;
}
@Override
public final Method getMember() {
if ($r == null) {
$r = doGetMember(clazz, name, argClasses);
}
return $r;
}
public final String getName() {
return name;
}
@Override
public final String toString() {
return doToString(clazz, name);
}
}
}

0 comments on commit 59b4ceb

Please sign in to comment.