MCPcopy Index your code
hub / github.com/beanshell/beanshell / getClassesForPackage

Method getClassesForPackage

src/bsh/classpath/BshClassPath.java:140–155  ·  view source on GitHub ↗

Return the set of class names in the specified package including all component paths.

( String pack )

Source from the content-addressed store, hash-verified

138 including all component paths.
139 */
140 synchronized public Set getClassesForPackage( String pack ) {
141 insureInitialized();
142 Set set = new HashSet();
143 Collection c = (Collection)packageMap.get( pack );
144 if ( c != null )
145 set.addAll( c );
146
147 if ( compPaths != null )
148 for (int i=0; i<compPaths.size(); i++) {
149 c = ((BshClassPath)compPaths.get(i)).getClassesForPackage(
150 pack );
151 if ( c != null )
152 set.addAll( c );
153 }
154 return set;
155 }
156
157 /**
158 Return the source of the specified class which may lie in component

Callers 4

getAllNamesMethod · 0.95
reloadPackageMethod · 0.80
setClistMethod · 0.80
driveToClassMethod · 0.80

Calls 3

insureInitializedMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected