Examples of accept()


Examples of org.eclipse.dltk.core.ISourceModule.accept()

                    .getFile());

                ByteArrayOutputStream stream = new ByteArrayOutputStream();
                PrintStream printStream = new PrintStream(
                    stream);
                sourceModule.accept(new PrintVisitor(
                    printStream));
                printStream.close();

                assertContents(pdttFile.getExpected(),
                    stream.toString());
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IConstructor.accept()

      // so lets try to find the tree without the cycle
      IConstructor tree = (IConstructor)alternatives.next();
      while (alternatives.hasNext() && CycleDetector.detect(tree) ) {
        tree = (IConstructor)alternatives.next();
      }
      tree.accept(this);
      return arg;
    }
   
    public IConstructor visitTreeCycle(IConstructor arg) throws IOException {
      return arg;
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IValue.accept()

      if (listIterator.hasNext()) {
        IValue v = listIterator.next();
        if (debug)
          System.err.println("VisitList:" + v + " " + v.getClass()
              + " " + v.getType());
        v.accept(this);
        while (listIterator.hasNext()) {
          append(',');
          listIterator.next().accept(this);
        }
      }
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.type.Type.accept()

    RandomValueTypeVisitor v = new RandomValueTypeVisitor(
        getValueFactory(), (ModuleEnvironment) getEnv().getRoot(),
        maxDepth.intValue(), generators, ctx.getCurrentEnvt().getTypeBindings());

    IValue returnVal = instantiatedReturnType.accept(v);

    return makeResult(instantiatedReturnType, returnVal, eval);

  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.ASTNode.accept()

            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        parser.setSource(writer.toString().toCharArray());
        ASTNode ast = parser.createAST(new NullProgressMonitor());
        ast.accept(new ASTVisitor() {

            private Map<String, String> _imports = new HashMap<String, String>();
           
            @Override
            public void endVisit(TypeDeclaration node) {
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AbstractTypeDeclaration.accept()

      ImportDeclaration d = (ImportDeclaration) it.next();
      d.accept(this);
    }
    for (Iterator it = node.types().iterator(); it.hasNext(); ) {
      AbstractTypeDeclaration d = (AbstractTypeDeclaration) it.next();
      d.accept(this);
    }
    return false;
  }

  /*
 
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Annotation.accept()

      if (node.getJavadoc() != null) {
        node.getJavadoc().accept(this);
      }
      for (Iterator it = node.annotations().iterator(); it.hasNext(); ) {
        Annotation p = (Annotation) it.next();
        p.accept(this);
        this.buffer.append(" ");//$NON-NLS-1$
      }
    }
    printIndent();
    this.buffer.append("package ");//$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AnonymousClassDeclaration.accept()

      for(Expression exp : arguments) {
        exp.accept(this);
      }
      AnonymousClassDeclaration decl = node.getAnonymousClassDeclaration();
      if (decl != null) {
        decl.accept(this);
      }
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Block.accept()

        }
      }
      // visit only the body
      Block body = node.getBody();
      if (body != null) { // body is null for abstract methods
        body.accept(this);
      }
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.BodyDeclaration.accept()

    this.buffer.append("@interface ");//$NON-NLS-1$
    node.getName().accept(this);
    this.buffer.append(" {");//$NON-NLS-1$
    for (Iterator it = node.bodyDeclarations().iterator(); it.hasNext(); ) {
      BodyDeclaration d = (BodyDeclaration) it.next();
      d.accept(this);
    }
    this.buffer.append("}\n");//$NON-NLS-1$
    return false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.