Exemplo n.º 1
0
 private void printTypeParameters(List<TypeParameter> args, Object arg) {
   if (args != null) {
     for (Iterator<TypeParameter> i = args.iterator(); i.hasNext(); ) {
       TypeParameter t = i.next();
       t.accept(this, arg);
       if (i.hasNext()) {}
     }
   }
 }
Exemplo n.º 2
0
 public void visit(TypeParameter n, Object arg) {
   if (n.getTypeBound() != null) {
     for (Iterator<ClassOrInterfaceType> i = n.getTypeBound().iterator(); i.hasNext(); ) {
       ClassOrInterfaceType c = i.next();
       c.accept(this, arg);
       if (i.hasNext()) {}
     }
   }
 }