2362N/A * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A /* for C capatibility */ 0N/A * Return the sourcePath, computing it if not set. 0N/A * If set, convert '/' in the sourcePath to the 0N/A * local file separator. 0N/A private final int sti;
/* stratum index */ 0N/A * Return all the sourceNames for this stratum. 0N/A * Look from our starting fileIndex upto the starting 0N/A * fileIndex of next stratum - can do this since there 0N/A * is always a terminator stratum. 0N/A * Default sourceName (the first one) must be first. 0N/A * Return all the sourcePaths for this stratum. 0N/A * Look from our starting fileIndex upto the starting 0N/A * fileIndex of next stratum - can do this since there 0N/A * is always a terminator stratum. 0N/A * Default sourcePath (the first one) must be first. 0N/A private final int sti;
/* stratum index */ 0N/A private final int lti;
/* line table index */ 0N/A * Fetch the source name and source path for 0N/A * this line, converting or constructing 0N/A * the source path if needed. 0N/A "Bad SourceDebugExtension, no matching source id " +
0N/A/***************************** 0N/A * Needed support functions: 0N/A * assureLineTableSize() 0N/A * assureFileTableSize() 0N/A * assureStratumTableSize() 0N/A * stratumTableIndex(String) 0N/A * Needed support variables: 0N/A /* check for CR LF */ 0N/A /* is there an absolute filename? */ 0N/A * Parse line translation info. Syntax is 0N/A * <NJ-start-line> [ # <file-id> ] [ , <line-count> ] : 0N/A * <J-start-line> [ , <line-increment> ] CR 0N/A /* is there a fileID? */ 0N/A /* is there a line count? */ 0N/A * Until the next stratum section, everything after this 0N/A * is in stratumId - so, store the current indicies. 0N/A /* remove redundant strata */ 0N/A /* nothing changed overwrite it */ 0N/A /* store the results */ 0N/A * The beginning of a stratum's info 0N/A * Ignore a section we don't know about. 0N/A * A base "Java" stratum is always available, though 0N/A * it is not in the SourceDebugExtension. 0N/A * Create the base stratum. 0N/A /* JPL line numbers cannot exceed 65535 */ 0N/A * Decode a SourceDebugExtension which is in SourceMap format. 0N/A * This is the entry point into the recursive descent parser. 0N/A /* check for "SMAP" - allow EOF if not ours */ 0N/A return;
/* not our info */ 0N/A /* set end points */ 0N/A /***************** query functions ***********************/