equal
deleted
inserted
replaced
49 methodDescriptor = logString.substring(i2, logString.length()); |
49 methodDescriptor = logString.substring(i2, logString.length()); |
50 |
50 |
51 // Add sanity check for extracted fields |
51 // Add sanity check for extracted fields |
52 } |
52 } |
53 |
53 |
54 public Method getMethod() throws NoSuchMethodException, SecurityException, ClassNotFoundException, Exception { |
54 public Method getMethod() throws NoSuchMethodException, SecurityException, ClassNotFoundException { |
55 try { |
55 try { |
56 return Class.forName(className).getDeclaredMethod(methodName, getParamenterDescriptorArray()); |
56 return Class.forName(className).getDeclaredMethod(methodName, getParamenterDescriptorArray()); |
57 } catch (UnexpectedTokenException e) { |
57 } catch (UnexpectedTokenException e) { |
58 throw new Exception("Parse failed"); |
58 throw new RuntimeException("Parse failed"); |
59 } |
59 } |
60 } |
60 } |
61 |
61 |
62 public Class<?>[] getParamenterDescriptorArray() throws ClassNotFoundException, UnexpectedTokenException { |
62 public Class<?>[] getParamenterDescriptorArray() throws ClassNotFoundException, UnexpectedTokenException { |
63 ParameterDecriptorIterator s = new ParameterDecriptorIterator(methodDescriptor); |
63 ParameterDecriptorIterator s = new ParameterDecriptorIterator(methodDescriptor); |