/******************************************************************************* * Copyright (c) 2000, 2003 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 net.sourceforge.phpdt.internal.core; import net.sourceforge.phpdt.core.ISourceRange; /* package */class CompilationUnitElementInfo extends OpenableElementInfo { /** * The length of this compilation unit's source code String */ protected int sourceLength; /** * Timestamp of original resource at the time this element was opened or * last updated. */ protected long timestamp; /** * Returns the length of the source string. */ // public int getSourceLength() { // return sourceLength; // } protected ISourceRange getSourceRange() { return new SourceRange(0, sourceLength); } protected boolean isOpen() { return true; } /** * Sets the length of the source string. */ public void setSourceLength(int newSourceLength) { sourceLength = newSourceLength; } }