LocalVariable.java revision 2362
4320N/A/*
4320N/A * Copyright (c) 1995, 2003, Oracle and/or its affiliates. All rights reserved.
4320N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4320N/A *
4320N/A * This code is free software; you can redistribute it and/or modify it
4320N/A * under the terms of the GNU General Public License version 2 only, as
4320N/A * published by the Free Software Foundation. Oracle designates this
4320N/A * particular file as subject to the "Classpath" exception as provided
4320N/A * by Oracle in the LICENSE file that accompanied this code.
4320N/A *
4320N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4320N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4320N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4320N/A * version 2 for more details (a copy is included in the LICENSE file that
4320N/A * accompanied this code).
4320N/A *
4320N/A * You should have received a copy of the GNU General Public License version
4320N/A * 2 along with this work; if not, write to the Free Software Foundation,
4320N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4320N/A *
4320N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4320N/A * or visit www.oracle.com if you need additional information or have any
4320N/A * questions.
4320N/A */
4320N/A
4320N/Apackage sun.tools.asm;
4320N/A
4320N/Aimport sun.tools.java.*;
4320N/A
4320N/A/**
4320N/A * This class is used to assemble the local variables in the local
4320N/A * variable table.
4320N/A *
4320N/A * WARNING: The contents of this source file are not part of any
4320N/A * supported API. Code that depends on them does so at its own risk:
4320N/A * they are subject to change or removal without notice.
4320N/A *
4320N/A * @author Arthur van Hoff
4320N/A */
4320N/Apublic final
4320N/Aclass LocalVariable {
4320N/A MemberDefinition field;
4320N/A int slot;
4320N/A int from;
4320N/A int to;
4320N/A
4320N/A public LocalVariable(MemberDefinition field, int slot) {
4320N/A if (field == null) {
4320N/A new Exception().printStackTrace();
4320N/A }
4320N/A this.field = field;
4320N/A this.slot = slot;
4320N/A to = -1;
4320N/A }
4320N/A
4320N/A LocalVariable(MemberDefinition field, int slot, int from, int to) {
4320N/A this.field = field;
4320N/A this.slot = slot;
4320N/A this.from = from;
4320N/A this.to = to;
4320N/A }
4320N/A
public String toString() {
return field + "/" + slot;
}
}