Lines Matching refs:type

51      * Renames a type descriptor, e.g. "Lcom.package.MyClass;"
52 * If the type doesn't need to be renamed, returns the input string as-is.
63 * Renames an object type, e.g. "Lcom.package.MyClass;" or an array type that has an
65 * If the type doesn't need to be renamed, returns the internal name of the input type.
67 String renameType(Type type) {
68 if (type == null) {
72 if (type.getSort() == Type.OBJECT) {
73 String in = type.getInternalName();
75 } else if (type.getSort() == Type.ARRAY) {
77 for (int n = type.getDimensions(); n > 0; n--) {
80 sb.append(renameType(type.getElementType()));
83 return type.getDescriptor();
87 * Renames an object type, e.g. "Lcom.package.MyClass;" or an array type that has an
90 * If the type doesn't need to be renamed, returns the input type object.
92 Type renameTypeAsType(Type type) {
93 if (type == null) {
97 if (type.getSort() == Type.OBJECT) {
98 String in = type.getInternalName();
103 } else if (type.getSort() == Type.ARRAY) {
105 for (int n = type.getDimensions(); n > 0; n--) {
108 sb.append(renameType(type.getElementType()));
111 return type;
260 public void visitTypeInsn(int opcode, String type) {
261 // The type sometimes turns out to be a type descriptor. We try to detect it and fix.
262 if (type.indexOf(';') > 0) {
263 type = renameTypeDesc(type);
265 type = renameInternalType(type);
267 super.visitTypeInsn(opcode, type);
280 // The owner sometimes turns out to be a type descriptor. We try to detect it and fix.
309 public void visitTryCatchBlock(Label start, Label end, Label handler, String type) {
310 type = renameInternalType(type);
312 super.visitTryCatchBlock(start, end, handler, type);