예제 #1
0
 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());
 }
예제 #2
0
 private static SimpleTypeInfo simple(TypeInfo typeInfo) {
   return typeInfo.toSimpleTypeInfo();
 }
예제 #3
0
 @Override
 String name() {
   return typeInfo.simpleName();
 }
예제 #4
0
 private static ClassName cn(TypeInfo typeInfo) {
   return typeInfo.className();
 }