You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Get a map from source line numbers to method descriptors for all methods with the specified name. In short this lets one retrieve the descriptor for a
98
-
* method and line number, which in turn can be used to get reflective access to that method.
99
-
*
100
-
* @param classData An input stream for the class file.
101
-
* @param methodName The name of the methods to map.
102
-
* @return A map from line numbers to the method descriptor.
103
-
* @throws IOException There was a problem reading the class file.
if (opcode == Opcodes.PUTFIELD || opcode == Opcodes.PUTSTATIC) {
57
+
if (className.equals(owner)) {
58
+
retVal.put(line, name);
59
+
}
60
+
}
61
+
}
62
+
63
+
@Override
64
+
publicvoidvisitLineNumber(intline, Labelstart) {
65
+
this.line = line;
66
+
}
67
+
};
68
+
}
69
+
}, 0);
70
+
returnretVal;
71
+
}
72
+
73
+
/**
74
+
* Get a map from source line numbers to method descriptors for all methods with the specified name. In short this lets one retrieve the descriptor for a
75
+
* method and line number, which in turn can be used to get reflective access to that method.
76
+
*
77
+
* @param classData An input stream for the class file.
78
+
* @param methodName The name of the methods to map.
79
+
* @return A map from line numbers to the method descriptor.
80
+
* @throws IOException There was a problem reading the class file.
// Find the method with the correct name and descriptor
62
-
if (HTrace.INITIALIZER.equals(element.getMethodName())) returnHStream.findOne(Stream.of(getDeclaringClass().getDeclaredConstructors()).filter(c -> HTrace.getDescriptor(c).equals(descriptor)));
if (HTraceInternal.INITIALIZER.equals(element.getMethodName())) returnHStream.findOne(Stream.of(getDeclaringClass().getDeclaredConstructors()).filter(c -> HTraceInternal.getDescriptor(c).equals(descriptor)));
0 commit comments