BasicLocalSym.java revision 9883:903a2e023ffb
10SN/A/* 28418SN/A * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. 30SN/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 40SN/A * 50SN/A * This code is free software; you can redistribute it and/or modify it 60SN/A * under the terms of the GNU General Public License version 2 only, as 70SN/A * published by the Free Software Foundation. 80SN/A * 90SN/A * This code is distributed in the hope that it will be useful, but WITHOUT 100SN/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 110SN/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 120SN/A * version 2 for more details (a copy is included in the LICENSE file that 130SN/A * accompanied this code). 140SN/A * 150SN/A * You should have received a copy of the GNU General Public License version 160SN/A * 2 along with this work; if not, write to the Free Software Foundation, 170SN/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 180SN/A * 191472SN/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 201472SN/A * or visit www.oracle.com if you need additional information or have any 211472SN/A * questions. 220SN/A * 230SN/A */ 240SN/A 258418SN/Apackage sun.jvm.hotspot.debugger.cdbg.basic; 260SN/A 270SN/Aimport sun.jvm.hotspot.debugger.cdbg.*; 280SN/A 290SN/Apublic class BasicLocalSym extends BasicSym implements LocalSym { 300SN/A private Type type; 310SN/A private long frameOffset; 320SN/A 330SN/A public BasicLocalSym(String name, Type type, long frameOffset) { 340SN/A super(name); 350SN/A this.type = type; 36 this.frameOffset = frameOffset; 37 } 38 39 public LocalSym asLocal() { return this; } 40 41 public Type getType() { return type; } 42 public long getFrameOffset() { return frameOffset; } 43 44 public void resolve(BasicCDebugInfoDataBase db, ResolveListener listener) { 45 type = db.resolveType(this, type, listener, "resolving type of local"); 46 } 47} 48