/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/** An internal structure that corresponds to the constant pool of a classfile.
*
* <p><b>This is NOT part of any supported API.
* If you write code that depends on this, you do so at your own risk.
* This code and its internal interfaces are subject to change or
* deletion without notice.</b>
*/
public class Pool {
/** Index of next constant to be entered.
*/
int pp;
/** The initial pool buffer.
*/
/** A hashtable containing all constants in the pool.
*/
/** Construct a pool with given number of elements and element array.
*/
for (int i = 1; i < pp; i++) {
}
}
/** Construct an empty pool.
*/
public Pool() {
}
/** Return the number of entries in the constant pool.
*/
public int numEntries() {
return pp;
}
/** Remove everything from this pool.
*/
public void reset() {
pp = 1;
}
/** Double pool buffer in size.
*/
private void doublePool() {
}
/** Place an object in the pool, unless it is already there.
* If object is a symbol also enter its owner unless the owner is a
* package. Return the object's index in the pool.
*/
if (value instanceof MethodSymbol)
// assert !(value instanceof Type.TypeVar);
// System.err.println("put " + value + " " + value.getClass());//DEBUG
}
}
}
/** Return the given object's index in the pool,
* or -1 if object is not in there.
*/
}
MethodSymbol m;
super(m);
this.m = m;
}
return
}
public int hashCode() {
return
}
}
VarSymbol v;
super(v);
this.v = v;
}
return
}
public int hashCode() {
return
}
}
}