GH-1150 - ApplicationModule now exposes internal types.

This commit is contained in:
Oliver Drotbohm
2025-04-17 23:45:32 +02:00
parent fd3542b3b0
commit 10f8716481

View File

@@ -781,6 +781,19 @@ public class ApplicationModule implements Comparable<ApplicationModule> {
return classes;
}
/**
* Returns all types internal to the module.
*
* @return will never be {@literal null}.
* @since 1.4
*/
public Collection<JavaClass> getInternalTypes() {
return classes.stream()
.filter(Predicate.not(this::isExposed))
.toList();
}
private String getQualifiedName(NamedInterface namedInterface) {
return namedInterface.getQualifiedName(getIdentifier());
}