Examples of visit()


Examples of de.danielbechler.diff.node.DiffNode.visit()

    final ObjectDifferBuilder objectDifferBuilder = ObjectDifferBuilder.startBuilding();
    // final Configuration2 objectDifferBuilder = new Configuration2().withChildrenOfAddedNodes();

    final DiffNode node = objectDifferBuilder.build().compare(working, base);

    node.visit(new NodeHierarchyVisitor());
    NodeAssertions.assertThat(node).root().hasState(DiffNode.State.CHANGED);
    NodeAssertions.assertThat(node).child("object").hasState(DiffNode.State.ADDED);
    NodeAssertions.assertThat(node).child("object", "object").hasState(DiffNode.State.ADDED);
  }
View Full Code Here

Examples of flash.swf.Action.visit()

                if (offsets != null)
            handler.setActionOffset(offsets[j], a);
                else
                    handler.setActionOffset(j, a);
      }
      a.visit(handler);
    }
    }

    public void setActionOffset(int offset, Action a)
    {
View Full Code Here

Examples of flash.swf.Tag.visit()

  {
    int size = tags.size();
    for (int i = 0; i < size; i++)
    {
      Tag t = tags.get(i);
      t.visit(handler);
    }
  }

    public void debugID(DebugID tag)
    {
View Full Code Here

Examples of groovyjarjarasm.asm.ClassWriter.visit()

        protected Class<?> findClass(String name) throws ClassNotFoundException
        {
            if (name.equals("MyClass"))
            {
                ClassWriter cw = new ClassWriter(true);
                cw.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "MyClass", null, "java/lang/Object", null);
                return defineClass(name, cw.toByteArray(), 0, cw.toByteArray().length);
            }
            else
            {
                return super.findClass(name);
View Full Code Here

Examples of it.freedomotic.environment.Room.visit()

        for (EnvironmentLogic env : EnvironmentPersistence.getEnvironments()) {
            for (ZoneLogic z : env.getZones()) {
                if (z instanceof Room) {
                    final Room room = (Room) z;
                    //the gate is opened or closed we update the reachable rooms
                    room.visit();
                }
            }

            for (ZoneLogic z : env.getZones()) {
                if (z instanceof Room) {
View Full Code Here

Examples of javax.jcr.ItemVisitor.visit()

                @Override
                protected void leaving(Node node, int i) {
                    // nothing to do
                }
            };
            visitor.visit(node);
            return itemInfos.iterator();
        }
    }

    /**
 
View Full Code Here

Examples of javax.jcr.util.TraversingItemVisitor.visit()

                @Override
                protected void leaving(Node node, int i) {
                    // nothing to do
                }
            };
            visitor.visit(node);
            return itemInfos.iterator();
        }
    }

    /**
 
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.ClassWriter.visit()

            final ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);

            final String className  = SPECIES_PREFIX_PATH + types;
            final String sourceFile = SPECIES_PREFIX_NAME + types;
            final int NOT_ACC_PUBLIC = 0// not ACC_PUBLIC
            cw.visit(V1_6, NOT_ACC_PUBLIC + ACC_FINAL + ACC_SUPER, className, null, BMH, null);
            cw.visitSource(sourceFile, null);

            // emit static types and SPECIES_DATA fields
            cw.visitField(NOT_ACC_PUBLIC + ACC_STATIC, "SPECIES_DATA", SPECIES_DATA_SIG, null, null).visitEnd();
View Full Code Here

Examples of jsprit.core.algorithm.state.UpdateEndLocationIfRouteIsOpen.visit()

        when(vehicleRoutingProblem.copyAndGetActivities(shipmentToInsert)).thenReturn(getTourActivities(shipmentToInsert));
    Inserter inserter = new Inserter(mock(InsertionListeners.class),vehicleRoutingProblem );
    inserter.insertJob(shipmentToInsert, iData, route);
   
    UpdateEndLocationIfRouteIsOpen updateEnd = new UpdateEndLocationIfRouteIsOpen();
    updateEnd.visit(route);
   
    assertEquals("oldShipmentDelLoc",route.getEnd().getLocationId());
  }

}
View Full Code Here

Examples of lombok.ast.ecj.EcjTreeBuilder.visit()

    List<Node> nodes = source.getNodes();
    assertEquals(1, nodes.size());
   
    EcjTreeBuilder builder = new EcjTreeBuilder(source, ecjCompilerOptions());
   
    builder.visit(nodes.get(0));
    return builder.get();
  }
 
  @Override
  protected ASTNode parseWithTargetCompiler(Source source) {
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.