示例#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();
 }