Examples of Scanner


Examples of at.ssw.coco.lib.model.atgAst.internal.Scanner

   * if in is invalid no AST will be generated (getRoot() will return null)
   */
  public AtgAst(InputStream in) {

    try {
      Scanner scanner = new Scanner(in);
      UTF8BufferUtil.forceUseOfUTF8Buffer(scanner); //workaround for UTF8-files without BOM
      Parser parser = new Parser(scanner);
      parser.Parse();
      root = parser.getRoot();
    } catch (Exception e) {
View Full Code Here

Examples of br.com.ingenieux.launchify.core.Scanner

  }

  private void executeInternal() throws Exception {
    this.sourcePaths = DEFAULT_SOURCE_PATHS;

    LaunchifySPI spi = getSPI(new Scanner(this.sourcePaths),
        super.collectDependencies());

    spi.execute();
  }
View Full Code Here

Examples of co.cask.cdap.api.dataset.table.Scanner

    if (!indexedColumns.contains(column)) {
      throw new IllegalArgumentException("Column " + Bytes.toStringBinary(column) + " is not configured for indexing");
    }
    byte[] rowKeyPrefix = Bytes.concat(column, keyDelimiter, value, keyDelimiter);
    byte[] stopRow = Bytes.stopKeyForPrefix(rowKeyPrefix);
    Scanner indexScan = index.scan(rowKeyPrefix, stopRow);
    return new IndexScanner(indexScan, rowKeyPrefix);
  }
View Full Code Here

Examples of com.alibaba.antx.util.scanner.Scanner

    /**
     * ɨ���㡣
     */
    protected void scan(InputStream istream) {
        Handler handler = new Handler();
        Scanner scanner = new DirectoryScanner(getConfigEntryResource().getFile(), handler);

        try {
            scanner.scan();
        } catch (ScannerException e) {
            throw new ConfigException(e);
        }

        subEntries = handler.getSubEntries();
View Full Code Here

Examples of com.buschmais.jqassistant.core.scanner.api.Scanner

        MavenProjectDescriptor parentProjectDescriptor = mock(MavenProjectDescriptor.class);
        when(store.find(MavenProjectDescriptor.class, "group:parent-artifact:1.0.0")).thenReturn(null, parentProjectDescriptor);
        when(store.create(MavenProjectDescriptor.class, "group:parent-artifact:1.0.0")).thenReturn(parentProjectDescriptor);

        scannerPlugin.initialize(store, properties);
        Scanner scanner = mock(Scanner.class);
        List mainFiles = new ArrayList<>();
        mainFiles.add(mock(FileDescriptor.class));
        List testFiles = new ArrayList<>();
        testFiles.add(mock(FileDescriptor.class));

        when(scanner.scan(Mockito.any(ClassesDirectory.class), Mockito.any(String.class), Mockito.eq(CLASSPATH))).thenReturn(mainFiles, testFiles);

        scannerPlugin.scan(project, null, null, scanner);

        verify(scanner).scan(Mockito.any(ClassesDirectory.class), Mockito.eq("target/classes"), Mockito.eq(CLASSPATH));
        verify(scanner).scan(Mockito.any(ClassesDirectory.class), Mockito.eq("target/test-classes"), Mockito.eq(CLASSPATH));
View Full Code Here

Examples of com.cj.qunit.mojo.Scanner

       
        for(int port: new Integer[]{8098, 8198, 8298, 8398, 8498, 8598, 8695, 8796}){
            try{

                final Scanner scanner = new Scanner(port, webPathToRequireDotJsConfig, pathsToServe, webRoot, cacheTests, filterPattern);
                List<HttpObject> resources = new ArrayList<HttpObject>(Arrays.asList(new TestListingResource("/", webRoot, webPathToRequireDotJsConfig, pathsToServe, scanner)));
               
                for(File projectDirectory: pathsToServe){
                    resources.add(new FilesystemResourcesObject(webRoot + "/{resource*}", projectDirectory));
                }
View Full Code Here

Examples of com.connect_group.thymesheet.css.selectors.scanner.Scanner

     */
    public Set<Node> querySelectorAll(String selectors) throws NodeSelectorException {
        Assert.notNull(selectors, "selectors is null!");
        List<List<Selector>> groups;
        try {
            Scanner scanner = new Scanner(selectors);
            groups = scanner.scan();
        } catch (ScannerException e) {
            throw new NodeSelectorException(e);
        }

        Set<Node> results = new LinkedHashSet<Node>();
View Full Code Here

Examples of com.digitolio.jdbi.codegen.Scanner

            }
        }
    }

    private static Set<Class<?>> scanPackage(String arg) {
        return new Scanner().scanPackage(arg);
    }
View Full Code Here

Examples of com.google.dart.engine.scanner.Scanner

   * @return the first Dart token
   */
  public static com.google.dart.engine.scanner.Token scanDartSource(Source source,
      LineInfo lineInfo, String contents, int contentOffset, AnalysisErrorListener errorListener) {
    Location location = lineInfo.getLocation(contentOffset);
    Scanner scanner = new Scanner(
        source,
        new SubSequenceReader(contents, contentOffset),
        errorListener);
    scanner.setSourceStart(location.getLineNumber(), location.getColumnNumber());
    return scanner.tokenize();
  }
View Full Code Here

Examples of com.google.errorprone.Scanner

    assertCompiles(memberSelectMatches(false, new InstanceMethod(
        Matchers.<ExpressionTree>anything(), "count")));
  }

  private Scanner memberSelectMatches(final boolean shouldMatch, final InstanceMethod toMatch) {
    return new Scanner() {
      @Override
      public Void visitMemberSelect(MemberSelectTree node, VisitorState visitorState) {
        if (getCurrentPath().getParentPath().getLeaf().getKind() == Kind.METHOD_INVOCATION) {
          assertTrue(node.toString(),
              !shouldMatch ^ toMatch.matches(node, visitorState));
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.