MCPcopy Index your code
hub / github.com/classgraph/classgraph / getNames

Method getNames

src/main/java/io/github/classgraph/InfoList.java:92–104  ·  view source on GitHub ↗

Get the names of all items in this list, by calling getName() on each item in the list. @return The names of all items in this list, by calling getName() on each item in the list.

()

Source from the content-addressed store, hash-verified

90 * @return The names of all items in this list, by calling {@code getName()} on each item in the list.
91 */
92 public List<String> getNames() {
93 if (this.isEmpty()) {
94 return Collections.emptyList();
95 } else {
96 final List<String> names = new ArrayList<>(this.size());
97 for (final T i : this) {
98 if (i != null) {
99 names.add(i.getName());
100 }
101 }
102 return names;
103 }
104 }
105
106 /**
107 * Get the String representations of all items in this list, by calling {@code toString()} on each item in the

Callers 15

nonRootPackageMethod · 0.80
rootPackageMethod · 0.80
scanMethod · 0.80
scanWithAcceptMethod · 0.80
annotationEqualityMethod · 0.80
testNarcissusMethod · 0.80
enumWithoutMethodMethod · 0.80
enumWithMethodMethod · 0.80
scanMethod · 0.80
scanWithAcceptMethod · 0.80

Calls 5

isEmptyMethod · 0.80
sizeMethod · 0.80
getNameMethod · 0.65
emptyListMethod · 0.45
addMethod · 0.45

Tested by 15

nonRootPackageMethod · 0.64
rootPackageMethod · 0.64
scanMethod · 0.64
scanWithAcceptMethod · 0.64
annotationEqualityMethod · 0.64
testNarcissusMethod · 0.64
enumWithoutMethodMethod · 0.64
enumWithMethodMethod · 0.64
scanMethod · 0.64
scanWithAcceptMethod · 0.64