use of com.sun.tools.classfile.ConstantPoolException in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitInvokeDynamic.
@Override
public String visitInvokeDynamic(CONSTANT_InvokeDynamic_info c, Integer p) {
String value = slist.get(p);
if (value == null) {
try {
value = bsmlist.get(c.bootstrap_method_attr_index) + " " + visit(cfpool.get(c.name_and_type_index), c.name_and_type_index);
slist.set(p, value);
xpool.add(new Element("CONSTANT_InvokeDynamic", new String[] { "id", p.toString() }, value));
} catch (ConstantPoolException ex) {
ex.printStackTrace();
}
}
return value;
}
use of com.sun.tools.classfile.ConstantPoolException in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitMethodref.
@Override
public String visitMethodref(CONSTANT_Methodref_info c, Integer p) {
String value = slist.get(p);
if (value == null) {
try {
value = visit(cfpool.get(c.class_index), c.class_index);
value = value.concat(" " + visit(cfpool.get(c.name_and_type_index), c.name_and_type_index));
slist.set(p, value);
xpool.add(new Element("CONSTANT_Methodref", new String[] { "id", p.toString() }, value));
} catch (ConstantPoolException ex) {
ex.printStackTrace();
}
}
return value;
}
use of com.sun.tools.classfile.ConstantPoolException in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitMethodType.
@Override
public String visitMethodType(CONSTANT_MethodType_info c, Integer p) {
String value = slist.get(p);
if (value == null) {
try {
value = visit(cfpool.get(c.descriptor_index), c.descriptor_index);
slist.set(p, value);
xpool.add(new Element("CONSTANT_MethodType", new String[] { "id", p.toString() }, value));
} catch (ConstantPoolException ex) {
ex.printStackTrace();
}
}
return value;
}
use of com.sun.tools.classfile.ConstantPoolException in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitClass.
@Override
public String visitClass(CONSTANT_Class_info c, Integer p) {
String value = slist.get(p);
if (value == null) {
try {
value = visit(cfpool.get(c.name_index), c.name_index);
slist.set(p, value);
xpool.add(new Element("CONSTANT_Class", new String[] { "id", p.toString() }, value));
} catch (ConstantPoolException ex) {
ex.printStackTrace();
}
}
return value;
}
use of com.sun.tools.classfile.ConstantPoolException in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitInterfaceMethodref.
@Override
public String visitInterfaceMethodref(CONSTANT_InterfaceMethodref_info c, Integer p) {
String value = slist.get(p);
if (value == null) {
try {
value = visit(cfpool.get(c.class_index), c.class_index);
value = value.concat(" " + visit(cfpool.get(c.name_and_type_index), c.name_and_type_index));
slist.set(p, value);
xpool.add(new Element("CONSTANT_InterfaceMethodref", new String[] { "id", p.toString() }, value));
} catch (ConstantPoolException ex) {
ex.printStackTrace();
}
}
return value;
}
Aggregations