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
266
266
return class_urls .keySet ().stream ().filter (s -> s .startsWith (packageName ) && -1 == s .indexOf ('.' , packageName .length () + 2 ));
267
267
}
268
268
269
+ /**
270
+ *
271
+ * @param text A left-justified substring of a fully qualified class name, with the package.
272
+ * @return
273
+ */
269
274
static public final Stream <String > findClassNamesStartingWith (final String text ) {
270
275
ensureCache ();
271
276
return class_urls .keySet ().stream ().filter (s -> s .startsWith (text ));
272
277
}
273
278
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
+
274
289
static public final ArrayList <String > findSimpleClassNamesStartingWith (final String text ) {
275
290
ensureCache ();
276
291
final ArrayList <String > matches = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments