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()); }
private static SimpleTypeInfo simple(TypeInfo typeInfo) { return typeInfo.toSimpleTypeInfo(); }
@Override String name() { return typeInfo.simpleName(); }
private static ClassName cn(TypeInfo typeInfo) { return typeInfo.className(); }