Examples of walk()


Examples of br.com.caelum.vraptor.panettone.parser.ast.PannetoneAST.walk()

  public String renderType() {
    CodeBuilder code = new CodeBuilder();
    PanettoneWalker walker = new PanettoneWalker(code);
   
    PannetoneAST ast = new PanettoneParser().parse(content);
    ast.walk(new LineNumberWalker(code, walker));
   
    return walker.getJavaCode();
  }

}
View Full Code Here

Examples of com.cedarsoft.commons.struct.BreadthFirstStructureTreeWalker.walk()

    if ( !baseDir.isDirectory() ) {
      throw new IllegalArgumentException( "Base dir is not a directory" );
    }

    StructureTreeWalker walker = new BreadthFirstStructureTreeWalker();
    walker.walk( root, new StructureTreeWalker.WalkerCallBack() {
      @Override
      public void nodeReached( @NotNull StructPart node, int level ) {
        Path path = Path.buildPath( node ); //pop the root
        if ( !rootVisible ) {
          path = path.popped();
View Full Code Here

Examples of com.cedarsoft.commons.struct.DepthFirstStructureTreeWalker.walk()

  @NotNull
  public String present( @NotNull StructPart struct ) {
    final StringBuilder builder = new StringBuilder();

    StructureTreeWalker treeWalker = new DepthFirstStructureTreeWalker();
    treeWalker.walk( struct, new StructureTreeWalker.WalkerCallBack() {
      public void nodeReached( @NotNull StructPart node, int level ) {
        for ( int i = 0; i < level; i++ ) {
          builder.append( intendSequence );
        }
        builder.append( node.getName() );
View Full Code Here

Examples of com.cedarsoft.commons.struct.StructureTreeWalker.walk()

  @NotNull
  public String present( @NotNull StructPart struct ) {
    final StringBuilder builder = new StringBuilder();

    StructureTreeWalker treeWalker = new DepthFirstStructureTreeWalker();
    treeWalker.walk( struct, new StructureTreeWalker.WalkerCallBack() {
      public void nodeReached( @NotNull StructPart node, int level ) {
        for ( int i = 0; i < level; i++ ) {
          builder.append( intendSequence );
        }
        builder.append( node.getName() );
View Full Code Here

Examples of com.hlcl.rql.hip.as.PhysicalPagesWalker.walk()

    // prepare page action called on all physical pages
    PageAction simulateSmartEditUsage = new SimulateSmartEditUsagePageAction();

    // walk through all physical child pages for all given start pages
    Page startPg = project.getPageById(startPageId);
    walker.walk(startPg, simulateSmartEditUsage);
   
  }
}
View Full Code Here

Examples of com.jcloisterzone.feature.City.walk()

                City c = (City) feature;
                CityScoreContext ctx = cityCache.get(c);
                if (ctx == null) {
                    ctx = c.getScoreContext();
                    ctx.setCityCache(cityCache);
                    c.walk(ctx);
                }
                if (ctx.isCompleted()) {
                    adjoiningCompletedCities.put((City) ctx.getMasterFeature(), ctx);
                }
            } else if (feature instanceof Castle) {
View Full Code Here

Examples of com.jcloisterzone.feature.Farm.walk()

        }
        Farm farm = (Farm) feature;

        FarmScoreContext ctx = farm.getScoreContext();
        ctx.setCityCache(new HashMap<City, CityScoreContext>());
        farm.walk(ctx);

        if (!farm.getTile().getGame().hasRule(CustomRule.MULTI_BARN_ALLOWED)) {
            for (Special m : ctx.getSpecialMeeples()) {
                if (m instanceof Barn) {
                    return new DeploymentCheckResult("Another barn is already placed on the farm.");
View Full Code Here

Examples of com.jcloisterzone.feature.Feature.walk()

    }

    @Override
    public void deployUnoccupied(Tile tile, Location loc) {
        Feature feature = getDeploymentFeature(tile, loc);
        if (feature.walk(new IsOccupied())) {
            throw new IllegalArgumentException("Feature is occupied.");
        }
        deploy(tile, loc, feature);
    }
View Full Code Here

Examples of com.sap.hadoop.windowing.query2.translate.QueryDefWalker.walk()

  {

    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf,
        inputObjInspectors[0]);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
  }

  protected void setupKeysWrapper(ObjectInspector inputOI) throws HiveException
  {
    PartitionDef pDef = RuntimeUtils.getFirstTableFunction(qDef).getWindow().getPartDef();
View Full Code Here

Examples of com.sleepycat.je.dbi.SortedLSNTreeWalker.walk()

        SortedLSNTreeWalker walker =
            new SortedLSNTreeWalker(new DatabaseImpl[] { dbImpl },
                                    false /*setDbState*/,
                                    new long[] { rootLsn },
                                    gatherLsns, savedExceptions, null);
        walker.walk();

        /* Print out any exceptions seen during the walk. */
        if (savedExceptions.size() > 0) {
            out.println(savedExceptions.size() +
                        " problems seen during tree walk for checkLsns");
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.