Examples of traverse()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement.traverse()

          }
          if ((wasACase && this.preferences.indent_switchstatements_compare_to_cases)
            || (wasAStatement && this.preferences.indent_switchstatements_compare_to_cases)) {
            this.scribe.unIndent();
          }
          statement.traverse(this, scope);
          this.scribe.printTrailingComment();
          wasACase = true;
          wasAStatement = false;
          if (this.preferences.indent_switchstatements_compare_to_cases) {
            this.scribe.indent();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement.traverse()

            }
          }
          if (wasACase) {
            this.scribe.printNewLine();
          }
          statement.traverse(this, scope);
          if (this.preferences.indent_breaks_compare_to_cases) {
            this.scribe.unIndent();
          }
          wasACase = false;
          wasAStatement = false;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement.traverse()

          }
          wasAStatement = true;
          wasACase = false;
        } else {
          this.scribe.printNewLine();
          statement.traverse(this, scope);
          wasAStatement = true;
          wasACase = false;
        }
        if (statement instanceof Expression) {
          /*
 
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement.traverse()

   
    final Statement action = whileStatement.action;
    if (action != null) {
      if (action instanceof Block) {
                formatLeftCurlyBrace(line, this.preferences.brace_position_for_block);
        action.traverse(this, scope);
      } else if (action instanceof EmptyStatement) {
        /*
         * This is an empty statement
         */
        formatNecessaryEmptyStatement();
 
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Statement.traverse()

         */
        formatNecessaryEmptyStatement();
      } else {
        this.scribe.printNewLine();
        this.scribe.indent();
        action.traverse(this, scope);
        if (action instanceof Expression) {
          this.scribe.printNextToken(TerminalTokens.TokenNameSEMICOLON, this.preferences.insert_space_before_semicolon);
          this.scribe.printTrailingComment();
        }
        this.scribe.unIndent();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference.traverse()

        try {
          this.scribe.alignFragment(superclassAlignment, 0);
          this.scribe.printNextToken(TerminalTokens.TokenNameextends, true);
          this.scribe.alignFragment(superclassAlignment, 1);
          this.scribe.space();
          superclass.traverse(this, typeDeclaration.scope);
          ok = true;
        } catch (AlignmentException e) {
          this.scribe.redoAlignment(e);
        }
      } while (!ok);
View Full Code Here

Examples of org.aspectj.weaver.patterns.Pointcut.traverse()

          packageName = typeDecl.binding.getPackage().readableName();
        }
        eScope.setLimitedImports(packageName);
        pc.resolve(eScope);
        HasIfPCDVisitor ifFinder = new HasIfPCDVisitor();
        pc.traverse(ifFinder, null);
        containsIfPcd = ifFinder.containsIfPcd;
      }
    } catch (ParserException pEx) {
      methodDeclaration.scope.problemReporter().parseError(pcLocation[0] + pEx.getLocation().getStart(),
          pcLocation[0] + pEx.getLocation().getEnd(), -1, pointcutExpression.toCharArray(), pointcutExpression,
View Full Code Here

Examples of org.broadinstitute.gatk.engine.traversals.TraversalEngine.traverse()

                    shard.getGenomeLocs(),
                    microScheduler.engine.getSampleDB().getSampleNames()); // todo: microScheduler.engine is protected - is it okay to user it here?

            for(WindowMaker.WindowMakerIterator iterator: windowMaker) {
                final ShardDataProvider dataProvider = new LocusShardDataProvider(shard,iterator.getSourceInfo(),microScheduler.getEngine().getGenomeLocParser(),iterator.getLocus(),iterator,microScheduler.reference,microScheduler.rods);
                accumulator = traversalEngine.traverse(walker, dataProvider, accumulator);
                dataProvider.close();
            }

            windowMaker.close();
            outputMergeTask = outputTracker.closeStorage();
View Full Code Here

Examples of org.eclipse.dltk.ast.ASTNode.traverse()

    if (visitor.visit(this)) {
      if (this.expressions != null) {
        for (int i = 0; i < this.expressions.size(); i++) {
          ASTNode node = this.expressions.get(i);
          if (node != null) {
            node.traverse(visitor);
          }
        }
      }
      visitor.endvisit(this);
    }
View Full Code Here

Examples of org.eclipse.dltk.ast.declarations.MethodDeclaration.traverse()

      ModuleDeclaration rootNode = SourceParserUtil
          .getModuleDeclaration(method.getSourceModule());
      MethodDeclaration methodDeclaration = PHPModelUtils
          .getNodeByMethod(rootNode, method);
      if (methodDeclaration != null) {
        methodDeclaration.traverse(new ASTVisitor() {
          public boolean visit(Statement s) throws Exception {
            if (s instanceof GlobalStatement) {
              GlobalStatement globalStatement = (GlobalStatement) s;
              for (Expression e : globalStatement.getVariables()) {
                if (e instanceof VariableReference) {
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.