553N/A * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved. 72N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 72N/A * This code is free software; you can redistribute it and/or modify it 72N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 72N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 72N/A * This code is distributed in the hope that it will be useful, but WITHOUT 72N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 72N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 72N/A * version 2 for more details (a copy is included in the LICENSE file that 72N/A * accompanied this code). 72N/A * You should have received a copy of the GNU General Public License version 72N/A * 2 along with this work; if not, write to the Free Software Foundation, 72N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 72N/A * A simple abstraction of a source file, as needed for use in a diagnostic message. 72N/A * Provides access to the line and position in a line for any given character offset. 580N/A * <p><b>This is NOT part of any supported API. 580N/A * If you write code that depends on this, you do so at your own risk. 72N/A * This code and its internal interfaces are subject to change or 72N/A * deletion without notice.</b> 302N/A /* constant DiagnosticSource to be used when sourcefile is missing */ 72N/A /** Return the underlying file object handled by this 72N/A * DiagnosticSource object. 72N/A /** Return the one-based line number associated with a given pos 72N/A * for the current source file. Zero is returned if no line exists 72N/A * for the given position. 72N/A /** Return the one-based column number associated with a given pos 72N/A * for the current source file. Zero is returned if no column exists 72N/A * for the given position. 72N/A /** Return the content of the line containing a given pos. 72N/A /** Find the line in the buffer that contains the current position 72N/A * @param pos Character offset into the buffer 72N/A // try and recover buffer from soft reference cache 72N/A /** The underlying file object. */ 72N/A /** A soft reference to the content of the file object. */ 72N/A /** A temporary hard reference to the content of the file object. */ 72N/A /** The length of the content. */ 72N/A /** The start of a line found by findLine. */ 72N/A /** The line number of a line found by findLine. */ 72N/A /** A log for reporting errors, such as errors accessing the content. */