public void visit(PackageDeclaration n, A arg) {
   if (n.getAnnotations() != null) {
     for (AnnotationExpr a : n.getAnnotations()) {
       a.accept(this, arg);
     }
   }
   n.getName().accept(this, arg);
 }
Exemplo n.º 2
0
 public void visit(PackageDeclaration n, Object arg) {
   printAnnotations(n.getAnnotations(), arg);
   n.getName().accept(this, arg);
 }
    @Override
    public Void visit(PackageDeclaration n, Map<AccessibleObject, String[]> arg) {

      packageName = n.getName().toString();
      return super.visit(n, arg);
    }