/*
* 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.
*/
/*
* Write a constant pool entry.
*
* <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>
*/
return instance;
}
super(context);
}
protected void writeConstantPool() {
}
tab();
return 1;
}
return 2;
}
tab();
return 1;
}
return 1;
}
return 1;
}
tab();
return 1;
}
tab();
return 1;
}
return 2;
}
tab();
return 1;
}
tab();
return 1;
}
tab();
return 1;
}
tab();
return 1;
}
tab();
return 1;
}
return 1;
}
};
println("Constant pool:");
indent(+1);
int cpx = 1;
try {
// should not happen
}
}
indent(-1);
}
if (cpx == 0) {
print("#0");
return;
}
try {
} catch (ConstantPoolException e) {
return;
}
switch (tag) {
case CONSTANT_Methodref:
case CONSTANT_Fieldref:
// simplify references within this class
try {
} catch (ConstantPool.InvalidIndex e) {
// ignore, for now
}
}
}
}
switch (tag) {
case CONSTANT_Utf8:
return "Utf8";
case CONSTANT_Integer:
return "int";
case CONSTANT_Float:
return "float";
case CONSTANT_Long:
return "long";
case CONSTANT_Double:
return "double";
case CONSTANT_Class:
return "class";
case CONSTANT_String:
return "String";
case CONSTANT_Fieldref:
return "Field";
case CONSTANT_MethodHandle:
return "MethodHandle";
case CONSTANT_MethodType:
return "MethodType";
case CONSTANT_Methodref:
return "Method";
return "InterfaceMethod";
case CONSTANT_InvokeDynamic:
return "InvokeDynamic";
case CONSTANT_NameAndType:
return "NameAndType";
default:
}
}
try {
} catch (ConstantPool.InvalidIndex e) {
return report(e);
}
}
}
}
return getCheckedName(info);
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
}
}
}
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
switch (c) {
case '\t':
break;
case '\n':
break;
case '\r':
break;
case '\"':
break;
default:
}
}
}
try {
} catch (ConstantPoolException e) {
}
}
try {
} catch (ConstantPoolException e) {
return report(e);
}
}
}
/* If name is a valid binary name, return it; otherwise quote it. */
return "null";
if (len == 0)
return "\"\"";
int cc = '/';
int cp;
}
}
return name;
}
/* If name requires escapes, put them in, so it can be a string body. */
int nextk = 0;
for (int k = 0; k < len; k++) {
if (n >= 0) {
if (nextk < k)
nextk = k+1;
}
}
return name;
}
}