File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/main/java/org/scijava/ui/swing/script Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -266,11 +266,26 @@ static public final Stream<String> findClassNamesForPackage(final String package
266266 return class_urls .keySet ().stream ().filter (s -> s .startsWith (packageName ) && -1 == s .indexOf ('.' , packageName .length () + 2 ));
267267 }
268268
269+ /**
270+ *
271+ * @param text A left-justified substring of a fully qualified class name, with the package.
272+ * @return
273+ */
269274 static public final Stream <String > findClassNamesStartingWith (final String text ) {
270275 ensureCache ();
271276 return class_urls .keySet ().stream ().filter (s -> s .startsWith (text ));
272277 }
273278
279+ /**
280+ *
281+ * @param text A substring of a class fully qualified name.
282+ * @return
283+ */
284+ static public final Stream <String > findClassNamesContaining (final String text ) {
285+ ensureCache ();
286+ return class_urls .keySet ().stream ().filter (s -> s .contains (text ));
287+ }
288+
274289 static public final ArrayList <String > findSimpleClassNamesStartingWith (final String text ) {
275290 ensureCache ();
276291 final ArrayList <String > matches = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments