Package data

Source Code of data.LineMatch

/*
* This file is part of TextScout.
*
* TextScout is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* TextScout is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with TextScout. If not, see <http://www.gnu.org/licenses/>.
*/

package data;

import java.util.LinkedList;
import java.util.List;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;

/**
*
* @author LeoN Represents one match in a specifc file
*/
public class LineMatch {

    private List<Line> lines = null;
    private final String pattern;

    public LineMatch(String pattern) {
        this.lines = new LinkedList<>();
        this.pattern = pattern;
    }

    public List<Line> getLines() {
        return lines;
    }

    public String getPattern() {
        return pattern;
    }

    public int getStartOfExactMatch() {
        //ToDo Implementation
        throw new NotImplementedException();
    }

    public int getEndOfExactMatch() {
        //ToDo Implementation
        throw new NotImplementedException();
    }

    public void addLine(Line l) {
        lines.add(l);
    }
}
TOP

Related Classes of data.LineMatch

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.