MCPcopy Create free account
hub / github.com/beanshell/beanshell / cacheClass

Method cacheClass

src/bsh/NameSpace.java:1028–1035  ·  view source on GitHub ↗

Helper that caches class.

( String name, Class c )

Source from the content-addressed store, hash-verified

1026 Helper that caches class.
1027 */
1028 void cacheClass( String name, Class c ) {
1029 if ( classCache == null ) {
1030 classCache = new HashMap<String,Class>();
1031 //cacheCount++; // debug
1032 }
1033
1034 classCache.put(name, c);
1035 }
1036
1037 /**
1038 Load a class through this namespace taking into account imports.

Callers 1

getClassImplMethod · 0.95

Calls 1

putMethod · 0.65

Tested by

no test coverage detected