Examples of matching()


Examples of groovy.json.JsonTokenType.matching()

                    int read = reader.read();
                    if (read == -1) return null;
                    currentContent.append((char) read);

                    if (currentContent.charAt(currentContent.length() - 1) == '"' && currentContent.charAt(currentContent.length() - 2) != '\\' &&
                            possibleTokenType.matching(currentContent.toString())) {
                        token.setEndLine(reader.getLine());
                        token.setEndColumn(reader.getColumn());
                        token.setText(unescape(currentContent.toString()));
                        return token;
                    }
View Full Code Here

Examples of groovy.json.JsonTokenType.matching()

                        break;
                    }
                }

                String content = currentContent.toString();
                if (possibleTokenType.matching(content)) {
                    token.setEndLine(reader.getLine());
                    token.setEndColumn(reader.getColumn());
                    token.setText(currentContent.toString());

                    return token;
View Full Code Here

Examples of groovy.json.JsonTokenType.matching()

                    char charRead = (char) read;
                    currentContent.append(charRead);

                    if (charRead == '"' && !isEscaped &&
                            possibleTokenType.matching(currentContent.toString())) {
                        token.setEndLine(reader.getLine());
                        token.setEndColumn(reader.getColumn());
                        token.setText(unescape(currentContent.toString()));
                        return token;
                    }
View Full Code Here

Examples of groovy.json.JsonTokenType.matching()

                        break;
                    }
                }

                String content = currentContent.toString();
                if (possibleTokenType.matching(content)) {
                    token.setEndLine(reader.getLine());
                    token.setEndColumn(reader.getColumn());
                    token.setText(currentContent.toString());

                    return token;
View Full Code Here

Examples of org.gradle.api.file.FileTree.matching()

     */
    @InputFiles
    @SkipWhenEmpty
    public FileTree getSource() {
        FileTree src = this.source.isEmpty() ? getDefaultSource() : getProject().files(new ArrayList<Object>(this.source)).getAsFileTree();
        return src == null ? getProject().files().getAsFileTree() : src.matching(patternSet);
    }

    /**
     * Returns the default source for this task, if any.
     *
 
View Full Code Here

Examples of org.gradle.api.file.FileTree.matching()

                String fileExtension = Files.getFileExtension(archiveFile.getName());
                FileTree archiveContents = fileExtension.equals("jar") || fileExtension.equals("zip")
                        ? fileOperations.zipTree(archiveFile) : fileOperations.tarTree(archiveFile);
                PatternSet patternSet = new PatternSet();
                patternSet.include(path);
                return archiveContents.matching(patternSet);
            }
            public TaskDependency getBuildDependencies() {
                return fileCollection.getBuildDependencies();
            }
        }, charset);
View Full Code Here

Examples of org.gradle.api.file.FileTree.matching()

     */
    @InputFiles
    @SkipWhenEmpty
    public FileTree getSource() {
        FileTree src = getProject().files(new ArrayList<Object>(this.source)).getAsFileTree();
        return src == null ? getProject().files().getAsFileTree() : src.matching(patternSet);
    }

    /**
     * Sets the source for this task. The given source object is evaluated as per {@link org.gradle.api.Project#files(Object...)}.
     *
 
View Full Code Here

Examples of org.hibernate.search.query.dsl.TermMatchingContext.matching()

            context.andField(field);
        }

        BooleanJunction<BooleanJunction> bool = qb.bool();
        for (String searchTerm : searchTerms) {
            bool.must(context.matching(String.format("*%s*", searchTerm.toLowerCase())).createQuery());
        }

        final FullTextQuery fullTextQuery = session.createFullTextQuery(bool.createQuery(), clazz);
        fullTextQuery.setCriteriaQuery(query);
        return fullTextQuery;
View Full Code Here

Examples of org.hibernate.search.query.dsl.TermMatchingContext.matching()

        .forEntity( ArrayBridgeTestEntity.class ).get();
    TermMatchingContext termMatchingContext = queryBuilder.keyword().onField( fieldName );
    if ( checkNullToken ) {
      termMatchingContext.ignoreFieldBridge();
    }
    Query query = termMatchingContext.matching( value ).createQuery();
    return fullTextSession.createFullTextQuery( query, ArrayBridgeTestEntity.class ).list();
  }

  @SuppressWarnings("unchecked")
  private List<ArrayBridgeTestEntity> findNumericResults(String fieldName, Object number) {
View Full Code Here

Examples of org.hibernate.search.query.dsl.TermMatchingContext.matching()

        .forEntity( MapBridgeTestEntity.class ).get();
    TermMatchingContext termMatchingContext = queryBuilder.keyword().onField( fieldName );
    if ( checkNullToken ) {
      termMatchingContext.ignoreFieldBridge();
    }
    Query query = termMatchingContext.matching( value ).createQuery();
    return fullTextSession.createFullTextQuery( query, MapBridgeTestEntity.class ).list();
  }

  @SuppressWarnings("unchecked")
  private List<MapBridgeTestEntity> findNumericResults(String fieldName, Object number) {
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.