001/*
002 *  gnu/regexp/RETokenEndSub.java
003 *  Copyright (C) 2001 Wes Biggs
004 *
005 *  This library is free software; you can redistribute it and/or modify
006 *  it under the terms of the GNU Lesser General Public License as published
007 *  by the Free Software Foundation; either version 2.1 of the License, or
008 *  (at your option) any later version.
009 *
010 *  This library is distributed in the hope that it will be useful,
011 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
012 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 *  GNU Lesser General Public License for more details.
014 *
015 *  You should have received a copy of the GNU Lesser General Public License
016 *  along with this program; if not, write to the Free Software
017 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
018 */
019
020package gnu.regexp;
021
022final class RETokenEndSub extends REToken {
023    RETokenEndSub(int subIndex) {
024        super(subIndex);
025    }
026    
027    boolean match(CharIndexed input, REMatch mymatch) {
028        mymatch.end[subIndex] = mymatch.index;
029        return next(input, mymatch);
030    }
031    
032    void dump(StringBuffer os) {
033        // handled by RE
034    }
035}