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 )
| 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() |