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

Method getClass

src/bsh/NameSpace.java:1044–1056  ·  view source on GitHub ↗

Load a class through this namespace taking into account imports. The class search will proceed through the parent namespaces if necessary. @return null if not found.

( String name )

Source from the content-addressed store, hash-verified

1042 @return null if not found.
1043 */
1044 public Class getClass( String name )
1045 throws UtilEvalError
1046 {
1047 Class c = getClassImpl(name);
1048 if ( c != null )
1049 return c;
1050 else
1051 // implement the recursion for getClassImpl()
1052 if ( parent != null )
1053 return parent.getClass( name );
1054 else
1055 return null;
1056 }
1057
1058 /**
1059 Implementation of getClass()

Callers 15

invokeMethodMethod · 0.80
getInterfaceMethod · 0.80
evalMethod · 0.80
initInstanceMethod · 0.80
assignMethod · 0.80
equalsMethod · 0.80
toClassMethod · 0.80
throwTypeErrorMethod · 0.80
getTypeMethod · 0.80
invokeObjectMethodMethod · 0.80
invokeMethodMethod · 0.80

Calls 1

getClassImplMethod · 0.95

Tested by 5

diamond_operatorMethod · 0.64
runTestMethod · 0.64
MethodSelectionMethod · 0.64
get_staticMethod · 0.64
get_dynamicMethod · 0.64