Package net.domesdaybook.expression.compiler.sequence

Examples of net.domesdaybook.expression.compiler.sequence.SequenceMatcherCompiler


     * @param seq A regular expression defining the anchor sequence for the subsequence.
     */
    public final void setSequence(final String seq) {
        try {
            final String transformedSequence = FragmentRewriter.rewriteFragment(seq);
            SequenceMatcherCompiler compiler = new SequenceMatcherCompiler();
            matcher = compiler.compile(transformedSequence);
            searcher = new BoyerMooreHorspoolSearcher(matcher);
        } catch (ParseException ex) {
            final String warning = String.format(SEQUENCE_PARSE_ERROR, seq, ex.getMessage());
            getLog().warn(warning);
            //throw new IllegalArgumentException(seq, ex);
View Full Code Here


     *
     * @param expression The regular expression defining the fragment.
     */
    public final void setFragment(final String expression) {
        try {
            SequenceMatcherCompiler compiler = new SequenceMatcherCompiler();
            final String transformed = FragmentRewriter.rewriteFragment(expression);
            matcher = compiler.compile(transformed);
        } catch (ParseException ex) {
            final String warning = String.format(FRAGMENT_PARSE_ERROR, expression, ex.getMessage());
            isInvalidFragment = true;
            getLog().warn(warning);           
            //throw new IllegalArgumentException(expression, ex);
View Full Code Here

TOP

Related Classes of net.domesdaybook.expression.compiler.sequence.SequenceMatcherCompiler

Copyright © 2018 www.massapicom. 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.