public static List<ForeignKeyInfoTypeInfo> listOf(
     SchemaNameTypeInfo schemaName, TypeInfo typeInfo) {
   return typeInfo
       .declaredTypeInfoStream()
       .filter(it -> it.hasAnnotation(ForeignKey.class))
       .map(it -> new ForeignKeyInfoTypeInfo(schemaName, it))
       .collect(Collectors.toList());
 }
Exemple #2
0
 private static SimpleTypeInfo simple(TypeInfo typeInfo) {
   return typeInfo.toSimpleTypeInfo();
 }
 @Override
 String name() {
   return typeInfo.simpleName();
 }
Exemple #4
0
 private static ClassName cn(TypeInfo typeInfo) {
   return typeInfo.className();
 }