Creates or reuses a class node for the supplied runtime and generic type information. @param cu the owning compile unit @param t the reflective type @param c the erased runtime class @return the resolved class node
(final CompileUnit cu, final Type t, final Class<?> c)
| 520 | * @return the resolved class node |
| 521 | */ |
| 522 | protected ClassNode makeClassNode(final CompileUnit cu, final Type t, final Class<?> c) { |
| 523 | ClassNode back = null; |
| 524 | if (cu != null) back = cu.getClass(c.getName()); |
| 525 | if (back == null) back = ClassHelper.make(c); |
| 526 | if (!(t instanceof Class)) { |
| 527 | ClassNode front = configureType(t); |
| 528 | front.setRedirect(back); |
| 529 | return front; |
| 530 | } |
| 531 | return back.getPlainNodeReference(); |
| 532 | } |
| 533 | |
| 534 | private Parameter[] makeParameters(final CompileUnit cu, final Type[] types, final Class<?>[] cls, final Annotation[][] parameterAnnotations, final Member member) { |
| 535 | Parameter[] params = Parameter.EMPTY_ARRAY; |
no test coverage detected