Victor Nazarov
Victor Nazarov
### Apache NetBeans version Apache NetBeans 14 ### What happened Defining compact constructor almost always results in "unused local variable" warning, because NetBeans is unaware of implicit field assignments that...
Add @GenerateTags annotation to generate `enum` with tag-values. Following code ``` java @GenerateTags(enumName = "OptionalTag", methodName = "tag") @GenerateValueClassForVisitor(className = "Optional") @Visitor(resultVariableName="R") interface OptionalVisitor { R present(@Nonnull T value); R...
Following @nobeh comment in #15 > Let's consider this psuedo/modelling code: > > ``` > data Map = EmptyMap | InsertAssoc(Pair, Map); > ``` > > which defines a `Map`...
Allow definitions like this: ``` java interface SomeVisitor { R callable(U callable); R immediate(T value); } ``` So we can write ``` java int eval(SomeValue value) { return value.accept(new SomeVisitor()...
More examples. Document open-recursion trick for recursive data-structures. Document selfReferenceVariableName parameter.
Following #18 discussion. @jbgi So, you are after something like this in the end: ``` java @GenerateValueClass(className = "ListImpl") abstract class List { public static List cons(T head, List tail)...
This should work... ``` java Optional i = flag ? Optional.present(5) : Optional.missing(); Optional m = i.withValue("5"); // Generated updater method ```
Allow to optionally generate implementation of [Isomorphism](https://github.com/sviperll/chicory/blob/master/chicory-core/src/main/java/com/github/sviperll/Isomorphism.java) or TypeStructure[[2](https://github.com/sviperll/chicory/blob/master/chicory-core/src/main/java/com/github/sviperll/TypeStructure2.java),[3](https://github.com/sviperll/chicory/blob/master/chicory-core/src/main/java/com/github/sviperll/TypeStructure3.java),[4](https://github.com/sviperll/chicory/blob/master/chicory-core/src/main/java/com/github/sviperll/TypeStructure4.java)] from chicory library to use for structure-generic transformations (like ORM or serialization) on generated value-classes.
Suppose that you have a class that represents HTTP-endpoints Like this: ``` java interface URLVisitor { R userIndex(); R user(int id); R postIndex(int userID); R post(int postID); } ``` During...
Testing
I still have no idea how to create proper tests for annotation processor. adt4j-examples project becomes unwieldy. We need code with compile-time errors to proper test adt4j.