blob: e77af7c42002ba68fd2a990ccb7c2fec9589fbd5 [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v05.html
*
* Contributors:
* IBM Rational Software - Initial API and implementation
***********************************************************************/
package org.eclipse.cdt.core.parser;
import java.util.Iterator;
/**
* @author jcamelon
*/
public interface ITokenDuple {
/**
* @return
*/
public abstract IToken getFirstToken();
/**
* @return
*/
public abstract IToken getLastToken();
public abstract Iterator iterator();
public abstract String toString();
public abstract boolean isIdentifier();
public abstract int length();
public abstract ITokenDuple getSubrange( int startIndex, int endIndex );
public IToken getToken(int index);
public int findLastTokenType( int type );
}