1 // $Id: EndOfLinePattern.java,v 1.2 2004/02/07 11:25:35 powerpete Exp $
2 // [JMP, 03.02.2004] Created this file.
3 package org.jface.stepmt.core.patterns;
4
5 import org.jface.stepmt.core.Interval;
6
7 /***
8 * @author <a href="mailto:powerpete@users.sf.net">M. Petersen</a>
9 * @version $Id: EndOfLinePattern.java,v 1.2 2004/02/07 11:25:35 powerpete Exp $
10 */
11 public class EndOfLinePattern extends AbstractPattern
12 {
13 public Interval match(final String str, final int index)
14 {
15 if (super.checkBounds(str, index) && str.charAt(index) == '\n')
16 {
17 return new Interval(index, 1);
18 }
19 return null;
20 }
21 }
This page was automatically generated by Maven