JavaIntegration: Allow expanding generic types #148
Labels
CraftTweaker
All Issues that are needed by CraftTweaker
JavaIntegration
All issues that relate to integrating ZenCode with existing Java Code
Milestone
We want to create Expansions that have Generic Type Parameters from JavaIntegration code.
Basically, we want to be able use Java Annotations to register the equivalent of this:
For that we need multiple things working:
@ZenCodeType.Expansion
classes.@ZenCodeType.Expansion#value
methodJared already started with some work:
https://github.com/ZenCodeLang/ZenCode/tree/feature/expansion-generics
Acceptance Criteria:
<T>
<T: CommandStringDisplayable>
<T super SomeType>
<T, U>
<T> expand Function<T, T>
<T, U expands T> expand Function<T, U>
public <T> expand SomeType<T> { public <U> doSomethingWith(U: value): void; }
<T> expand string
<T: string> expand Recipe<T>
<T, T> expand Function<T, T>
The text was updated successfully, but these errors were encountered: