/*
* 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.
*
* 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.
*/
package ilib;
byte[] classfileBuffer) {
}
static boolean verbose = true;
final ClassReaderWriter c;
int constantPoolCount;
int methodsCount;
this.c = c;
}
void doit() {
int i;
constantPoolCount = c.copyU2();
// copy old constant pool
int interfaceCount = c.copyU2();
copyFields(); // fields
copyMethods(); // methods
// copy the class attributes
}
void copyFields() {
if (verbose) {
}
for (int i = 0; i < count; ++i) {
if (verbose) {
}
}
}
void copyMethods() {
methodsCount = c.copyU2();
if (verbose) {
}
for (int i = 0; i < methodsCount; ++i) {
copyMethod();
}
}
void copyMethod() {
if (verbose) {
}
for (int i = 0; i < attrCount; ++i) {
}
}
for (int i = 0; i < attrCount; ++i) {
copyAttr();
}
}
void copyAttr() {
if (verbose) {
}
}
// check for Code attr
if (nameIndex == c.codeAttributeIndex) {
try {
} catch (IOException exc) {
}
} else {
}
}
}
traceln("Code attr found");
c.copyU2(); // max locals
for (int i = 0; i < attrCount; ++i) {
}
}
/**
* Copy the exception table for this method code
*/
if (tableLength > 0) {
traceln();
traceln("Exception table:");
if (verbose) {
trace(" ");
if (catchType == 0)
traceln("any");
else {
}
}
}
}
}
if (index > constantPoolCount) {
} else {
}
}
} else {
}
}
if (verbose) {
}
}
if (verbose) {
}
}
private void traceln() {
if (verbose) {
}
}
private void trace(int i) {
if (verbose) {
}
}
/**
* Print an integer so that it takes 'length' characters in
* the output. Temporary until formatting code is stable.
*/
if (verbose) {
trace(" ");
}
}
}