Examples of accept()


Examples of org.suigeneris.jrcs.diff.Revision.accept()

        // The MyersDiff is a bit dumb by converting a single line multi-word diff into a series
        // of Changes. The ChangeMerger pulls them together again...
        //
        ChangeMerger cm = new ChangeMerger( sb, alpha, revSize );

        rev.accept( cm );

        cm.shutdown();

        sb.append( m_diffEnd );
View Full Code Here

Examples of org.tautua.markdownpapers.ast.Document.accept()

        StringWriter sw = new StringWriter();
        try (InputStreamReader stream = new InputStreamReader(PlaintextTest.class.getResourceAsStream(mdFile))) {
            Parser parser = new Parser(stream);
            Document document = parser.parse();
            PlaintextMarkdownVisitor emitter = new PlaintextMarkdownVisitor(new WordWrap(sw));
            document.accept(emitter);
        }
       
        StringBuilder sb = new StringBuilder();
       
        try (BufferedReader r = new BufferedReader(new InputStreamReader(PlaintextTest.class.getResourceAsStream(txtFile)))){
View Full Code Here

Examples of org.tmatesoft.hg.internal.PathScope.accept()

    };
    //
    // accept specified path, with files and folders below
    PathScope ps1 = new PathScope(true, scope);
    // folders
    errorCollector.assertTrue(ps1.accept(Path.create("a/")));    // == scope[0]
    errorCollector.assertTrue(ps1.accept(Path.create("a/d/")))// scope[0] is parent and recursiveDir = true
    errorCollector.assertTrue(ps1.accept(Path.create("a/d/e/")))// scope[0] is parent and recursiveDir = true
    errorCollector.assertTrue(!ps1.accept(Path.create("b/d/"))); // unrelated to any preconfigured
    errorCollector.assertTrue(ps1.accept(Path.create("b/")));    // arg is parent to scope[1]
    errorCollector.assertTrue(ps1.accept(Path.create("d/")));    // arg is parent to scope[2]
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.ISVNFileFilter.accept()

            if (SVNFileUtil.getAdminDirectoryName().equals(file.getName())) {
                SVNEvent skippedEvent = SVNEventFactory.createSVNEvent(file, SVNNodeKind.NONE, null, SVNRepository.INVALID_REVISION, SVNEventAction.SKIP, SVNEventAction.COMMIT_ADDED, null, null);
                handleEvent(skippedEvent, ISVNEventHandler.UNKNOWN);
                continue;
            }
            if (filter != null && !filter.accept(file)) {
                continue;
            }
            String path = importPath == null ? file.getName() : SVNPathUtil.append(importPath, file.getName());
            if (useGlobalIgnores && SVNStatusEditor.isIgnored(ignores, file, "/" + path)) {
                continue;
View Full Code Here

Examples of org.voltdb.compiler.Language.accept()

                                                 className + ") it expected to be in the " +
                                                "catalog jarfile and will now exit.", false, null);
                    }
                }
                try {
                    procedure = lang.accept(procedureInstantiator, procClass);
                }
                catch (final Exception e) {
                    hostLog.l7dlog( Level.WARN, LogKeys.host_ExecutionSite_GenericException.name(),
                                    new Object[] { m_siteId, m_siteIndex }, e);
                }
View Full Code Here

Examples of plan_runner.predicates.Predicate.accept()

  @Override
  public void visit(SelectOperator selection) {
    final Predicate predicate = selection.getPredicate();
    final VECollectPredVisitor vecpv = new VECollectPredVisitor();
    predicate.accept(vecpv);
    _beforeProjection.addAll(vecpv.getExpressions());
    _veList.addAll(vecpv.getExpressions());
  }

  private void visitNested(DistinctOperator distinct) {
View Full Code Here

Examples of proguard.classfile.Clazz.accept()

            for (int index = 0; index < referencedClasses.length; index++)
            {
                Clazz referencedClass = referencedClasses[index];
                if (referencedClass != null)
                {
                    referencedClass.accept(classVisitor);
                }
            }
        }
    }
View Full Code Here

Examples of proguard.classfile.attribute.Attribute.accept()

        for (int index = 0; index < u2attributesCount; index++)
        {
            Attribute attribute = attributes[index];
            if (attribute.getAttributeName(this).equals(name))
            {
                attribute.accept(this, attributeVisitor);
            }
        }
    }

View Full Code Here

Examples of pt.webdetails.cpf.repository.api.IBasicFileFilter.accept()

    IBasicFileFilter filter = new GenericFileAndDirectoryFilter( superFilter, DIRECTORIES,
      GenericFileAndDirectoryFilter.FilterType.FILTER_IN );

    // this directory should now be accepted because it is contained in the DIRECTORIES and we are doing a
    // FILTER_IN logic ( white-list )
    Assert.assertTrue( filter.accept( testFolder ) );
  }

  @Test
  public void testExistingDirectoryIsProperlyDiscarded() {
View Full Code Here

Examples of pushy.net.RemoteServerSocket.accept()

                }
            };
            thread.start();

            // Accept the connection.
            Socket peer = server.accept();
            try {
                assertTrue(peer.isConnected());
                thread.join();
                SocketAddress peerAddress = peer.getRemoteSocketAddress();
                assertTrue(peerAddress instanceof InetSocketAddress);
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.