X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fparser%2FNLSLine.java;fp=src%2Forg%2Feclipse%2Fjdt%2Finternal%2Fcompiler%2Fparser%2FNLSLine.java;h=0000000000000000000000000000000000000000;hb=6f0cd02d46e011bd5599e1b7fefc6159cb811135;hp=99af1e3051b184e99c72933bed291fb17e1c1497;hpb=622d0e5a4b1b35b6918a516a79a0cc22272a919e;p=org.ibex.tool.git diff --git a/src/org/eclipse/jdt/internal/compiler/parser/NLSLine.java b/src/org/eclipse/jdt/internal/compiler/parser/NLSLine.java deleted file mode 100644 index 99af1e3..0000000 --- a/src/org/eclipse/jdt/internal/compiler/parser/NLSLine.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jdt.internal.compiler.parser; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import org.eclipse.jdt.internal.compiler.ast.StringLiteral; - -public class NLSLine { - - private List elements; - - public NLSLine() { - this.elements = new ArrayList(); - } - - /** - * Adds a NLS element to this line. - */ - public void add(StringLiteral element) { - this.elements.add(element); - } - - /** - * returns an Iterator over NLSElements - */ - public Iterator iterator() { - return this.elements.iterator(); - } - - public StringLiteral get(int index) { - return (StringLiteral) this.elements.get(index); - } - - public void set(int index, StringLiteral literal) { - this.elements.set(index, literal); - } - - public boolean exists(int index) { - return index >= 0 && index < this.elements.size(); - } - - public int size(){ - return this.elements.size(); - } - - public String toString() { - StringBuffer result= new StringBuffer(); - for (Iterator iter= iterator(); iter.hasNext(); ) { - result.append("\t"); //$NON-NLS-1$ - result.append(iter.next().toString()); - result.append("\n"); //$NON-NLS-1$ - } - return result.toString(); - } -}