示例#1
0
 static {
   gen.model.mixinReference.Author.__bindToperson(
       parent -> {
         gen.model.mixinReference.Person e = parent.getPerson();
         if (e != null) {
           e.AuthorID = parent.getID();
         }
       });
 }
示例#2
0
文件: Child.java 项目: dstimac/revenj
 static {
   gen.model.mixinReference.Author.__bindTochildren(
       parent -> {
         int i = 0;
         for (gen.model.mixinReference.Child e : parent.getChildren()) {
           e.AuthorID = parent.getID();
           e.Index = i++;
         }
       });
 }