SequenceMatcher.java :  » Search » byteseek » net » domesdaybook » matcher » sequence » Java Open Source

Java Open Source » Search » byteseek 
byteseek » net » domesdaybook » matcher » sequence » SequenceMatcher.java
/*
 * Copyright Matt Palmer 2009-2011, All rights reserved.
 *
 */

package net.domesdaybook.matcher.sequence;

import net.domesdaybook.matcher.Matcher;
import net.domesdaybook.matcher.singlebyte.SingleByteMatcher;

/**
 *
 * @author Matt Palmer
 */
 public interface SequenceMatcher extends Matcher {

    /**
     *
     * @param position the position in the byte matcher to return a dedicated byte matcher for.
     * @return a byte matcher for a single position.
     */
    public SingleByteMatcher getByteMatcherForPosition(final int position);

    
    /*
     * @returns Returns the length of a matching byte sequence.
     */
    public int length();

    
    /* @param prettyPrint whether to pretty print the regular expression with spacing.
     * @returns Returns a string containing a regular expression of the byte matcher.
     */
    public String toRegularExpression(final boolean prettyPrint);

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.