Compare commits
2 Commits
2f54fb3921
...
08891229a9
Author | SHA1 | Date |
---|---|---|
Johannes Frohnmeyer | 08891229a9 | |
Johannes Frohnmeyer | 4bcbc2b588 |
|
@ -3,7 +3,6 @@ package io.gitlab.jfronny.libjf.config.plugin;
|
|||
import com.squareup.javapoet.ClassName;
|
||||
|
||||
public class Cl {
|
||||
|
||||
public static final ClassName MANIFOLD_EXTENSION = ClassName.get("manifold.ext.rt.api", "Extension");
|
||||
public static final ClassName MANIFOLD_THIS = ClassName.get("manifold.ext.rt.api", "This");
|
||||
}
|
||||
|
|
|
@ -15,8 +15,8 @@ public record ConfigClass(
|
|||
) {
|
||||
public static ConfigClass of(TypeElement element, String[] referencedConfigs, TypeName tweakerName, boolean hasManifold) {
|
||||
ClassName className = ClassName.get(element);
|
||||
String pkg = hasManifold ? "gsoncompile.extensions." + className.packageName() + "." + className.simpleNames().get(0) : className.packageName();
|
||||
ClassName generatedClassName = ClassName.get(pkg, "JFC_" + className.simpleNames().get(0), className.simpleNames().subList(1, className.simpleNames().size()).toArray(String[]::new));
|
||||
String pkg = hasManifold ? "gsoncompile.extensions." + className.packageName() + "." + className.simpleNames().getFirst() : className.packageName();
|
||||
ClassName generatedClassName = ClassName.get(pkg, "JFC_" + className.simpleNames().getFirst(), className.simpleNames().subList(1, className.simpleNames().size()).toArray(String[]::new));
|
||||
return new ConfigClass(element, ClassName.get(element), TypeName.get(element.asType()), generatedClassName, referencedConfigs, tweakerName);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,9 +2,7 @@ package io.gitlab.jfronny.libjf.config.api.v2.dsl;
|
|||
|
||||
import io.gitlab.jfronny.commons.serialize.SerializeReader;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface Migration {
|
||||
<TEx extends Exception, Reader extends SerializeReader<TEx, Reader>> void apply(Reader reader) throws IOException;
|
||||
<TEx extends Exception, Reader extends SerializeReader<TEx, Reader>> void apply(Reader reader) throws TEx;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue