public Node visit(TypeParameter n, A arg) { List<ClassOrInterfaceType> typeBound = n.getTypeBound(); if (typeBound != null) { for (int i = 0; i < typeBound.size(); i++) { typeBound.set(i, (ClassOrInterfaceType) typeBound.get(i).accept(this, arg)); } removeNulls(typeBound); } return n; }
public Node visit(TypeParameter n, A arg) { List<ClassOrInterfaceType> typeBound = n.getTypeBound(); if (typeBound != null) { for (int i = 0; i < typeBound.size(); i++) { typeBound.set(i, (ClassOrInterfaceType) typeBound.get(i).accept(this, arg)); } removeNulls(typeBound); } return n; }
public void visit(TypeParameter n, A arg) { if (n.getTypeBound() != null) { for (ClassOrInterfaceType c : n.getTypeBound()) { c.accept(this, arg); } } }
public void visit(TypeParameter n, A arg) { if (n.getTypeBound() != null) { for (ClassOrInterfaceType c : n.getTypeBound()) { c.accept(this, arg); } } }
public R visit(TypeParameter n, A arg) { if (n.getTypeBound() != null) { for (ClassOrInterfaceType c : n.getTypeBound()) { c.accept(this, arg); } } return null; }
public R visit(TypeParameter n, A arg) { if (n.getTypeBound() != null) { for (ClassOrInterfaceType c : n.getTypeBound()) { c.accept(this, arg); } } return null; }
public Node visit(ClassOrInterfaceType n, A arg) { if (n.getScope() != null) { n.setScope((ClassOrInterfaceType) n.getScope().accept(this, arg)); } List<Type> typeArgs = n.getTypeArgs(); if (typeArgs != null) { for (int i = 0; i < typeArgs.size(); i++) { typeArgs.set(i, (Type) typeArgs.get(i).accept(this, arg)); } removeNulls(typeArgs); } return n; }
public Node visit(ClassOrInterfaceType n, A arg) { if (n.getScope() != null) { n.setScope((ClassOrInterfaceType) n.getScope().accept(this, arg)); } List<Type> typeArgs = n.getTypeArgs(); if (typeArgs != null) { for (int i = 0; i < typeArgs.size(); i++) { typeArgs.set(i, (Type) typeArgs.get(i).accept(this, arg)); } removeNulls(typeArgs); } return n; }
public void visit(TypeParameter n, Object arg) { printBeginComments(n.getBeginComments(), arg); printer.print(n.getName()); if (n.getTypeBound() != null) { printer.print(" extends "); for (Iterator<ClassOrInterfaceType> i = n.getTypeBound().iterator(); i.hasNext();) { ClassOrInterfaceType c = i.next(); c.accept(this, arg); if (i.hasNext()) { printer.print(" & "); } } } printEndComments(n.getEndComments(), arg); }
public void visit(TypeParameter n, Object arg) { printBeginComments(n.getBeginComments(), arg); printer.print(n.getName()); if (n.getTypeBound() != null) { printer.print(" extends "); for (Iterator<ClassOrInterfaceType> i = n.getTypeBound().iterator(); i.hasNext();) { ClassOrInterfaceType c = i.next(); c.accept(this, arg); if (i.hasNext()) { printer.print(" & "); } } } printEndComments(n.getEndComments(), arg); }
public void visit(ClassOrInterfaceType n, A arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } }
public R visit(ClassOrInterfaceType n, A arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } return null; }
public R visit(ClassOrInterfaceType n, A arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } return null; }
public void visit(ClassOrInterfaceType n, A arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } }
public void visit(ClassOrInterfaceType n, Object arg) { printBeginComments(n.getBeginComments(), arg); if (n.getScope() != null) { n.getScope().accept(this, arg); printer.print("."); } printer.print(n.getName()); printTypeArgs(n.getTypeArgs(), arg); printEndComments(n.getEndComments(), arg); }
public void visit(ClassOrInterfaceType n, Object arg) { printBeginComments(n.getBeginComments(), arg); if (n.getScope() != null) { n.getScope().accept(this, arg); printer.print("."); } printer.print(n.getName()); printTypeArgs(n.getTypeArgs(), arg); printEndComments(n.getEndComments(), arg); }
public void visit(ObjectCreationExpr n, A arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } n.getType().accept(this, arg); if (n.getArgs() != null) { for (Expression e : n.getArgs()) { e.accept(this, arg); } } if (n.getAnonymousClassBody() != null) { for (BodyDeclaration member : n.getAnonymousClassBody()) { member.accept(this, arg); } } }
public R visit(ObjectCreationExpr n, A arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } n.getType().accept(this, arg); if (n.getArgs() != null) { for (Expression e : n.getArgs()) { e.accept(this, arg); } } if (n.getAnonymousClassBody() != null) { for (BodyDeclaration member : n.getAnonymousClassBody()) { member.accept(this, arg); } } return null; }
public void visit(ObjectCreationExpr n, Object arg) { printBeginComments(n.getBeginComments(), arg); if (n.getScope() != null) { n.getScope().accept(this, arg); printer.print("."); } printer.print("new "); printTypeArgs(n.getTypeArgs(), arg); n.getType().accept(this, arg); printArguments(n.getArgs(), arg); if (n.getAnonymousClassBody() != null) { printer.printLn(" {"); printer.indent(); printMembers(n.getAnonymousClassBody(), arg); printer.unindent(); printer.print("}"); } printEndComments(n.getEndComments(), arg); }
public void visit(ObjectCreationExpr n, Object arg) { printBeginComments(n.getBeginComments(), arg); if (n.getScope() != null) { n.getScope().accept(this, arg); printer.print("."); } printer.print("new "); printTypeArgs(n.getTypeArgs(), arg); n.getType().accept(this, arg); printArguments(n.getArgs(), arg); if (n.getAnonymousClassBody() != null) { printer.printLn(" {"); printer.indent(); printMembers(n.getAnonymousClassBody(), arg); printer.unindent(); printer.print("}"); } printEndComments(n.getEndComments(), arg); }