Looks up a class by its fully qualified name, checking both compiled classes and classes pending compilation. Returns null if the name does not exist in the current compilation unit (does not check .class files on classpath). @param name the fully qualified class name @return the {@link Cla
(final String name)
| 161 | * @return the {@link ClassNode} or {@code null} if not found in this unit |
| 162 | */ |
| 163 | public ClassNode getClass(final String name) { |
| 164 | ClassNode cn = classes.get(name); |
| 165 | if (cn == null) |
| 166 | cn = classesToCompile.get(name); |
| 167 | return cn; |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * Returns the map of classes pending compilation. |