public Stream<MethodInfo> methodInfoStream() { return typeInfo.methodInfoStream(); }
public Stream<MethodInfo> methodInfoStream() { return typeInfo.methodInfoStream(); }
public Stream<MethodInfo> methodInfoStream() { return typeInfo.methodInfoStream(); }
public Stream<MethodInfo> methodInfoStream() { return typeInfo.methodInfoStream(); }
static List<InvalidateMethod> of(TypeInfo typeInfo) { return typeInfo.methodInfoStream() .map(method -> of0(typeInfo, method)) .filter(Optional::isPresent) .map(Optional::get) .collect(MoreCollectors.toImmutableList()); }
static List<InvalidateMethod> of(TypeInfo typeInfo) { return typeInfo.methodInfoStream() .map(method -> of0(typeInfo, method)) .filter(Optional::isPresent) .map(Optional::get) .collect(MoreCollectors.toImmutableList()); }
public static BaseTypeType of(TypeInfo typeInfo) { return new BaseTypeType( typeInfo.className(), typeInfo.annotationInfo(BaseType.class) .flatMap(ann -> ann.stringValue("className")) .get(), typeInfo.methodInfoStream() .map(AttributeMethod::of) .collect(Collectors.toList())); }
private static List<Property> of0(Mode mode, TypeInfo typeInfo) { Naming naming = Naming.of(typeInfo); return typeInfo.methodInfoStream() .filter(m -> m.hasModifierInfo(ModifierInfo.ABSTRACT)) .filter(m -> !m.hasReturnTypeInfo(SimpleTypePrimitives.VOID)) .filter(m -> m.hasParameterInfoListSize(0)) .filter(m -> !m.hasAnnotation(Invalidate.class)) .map(m -> new Property(mode, naming, m)) .collect(MoreCollectors.toImmutableList()); }
private static List<Property> of0(Mode mode, TypeInfo typeInfo) { Naming naming = Naming.of(typeInfo); return typeInfo.methodInfoStream() .filter(m -> m.hasModifierInfo(ModifierInfo.ABSTRACT)) .filter(m -> !m.hasReturnTypeInfo(SimpleTypePrimitives.VOID)) .filter(m -> m.hasParameterInfoListSize(0)) .filter(m -> !m.hasAnnotation(Invalidate.class)) .map(m -> new Property(mode, naming, m)) .collect(MoreCollectors.toImmutableList()); }
public static RepoType of(TypeInfo typeInfo) { List<RepoQueryMethod> queryMethodList = typeInfo.methodInfoStream() .filter(m -> m.hasAnnotation(Query.class)) .map(RepoQueryMethod::ofRepo) .filter(Optional::isPresent) .map(Optional::get) .collect(MoreCollectors.toImmutableList()); return RepoType.builder() .superTypeName(typeInfo.typeName()) .repoClassName(typeInfo.classNameSuffix("Repo")) .queryMethodList(queryMethodList) .build(); }