Beispiel #1
0
 private SNode getErrorLocation(_FunctionTypes._void_P0_E0 method) {
   try {
     method.invoke();
   } catch (Throwable t) {
     StackTraceElement stackTraceElement = t.getStackTrace()[0];
     SNode node =
         TraceInfoUtil.getJavaNode(
             stackTraceElement.getClassName(),
             stackTraceElement.getFileName(),
             stackTraceElement.getLineNumber());
     return node;
   }
   return null;
 }
 @Nullable
 @Override
 public SNode getNode(@NonNls String unitName, @NonNls String fileName, int position) {
   return TraceInfoUtil.getJavaNode(unitName, fileName, position);
 }
 @Nullable
 public SNode getNode() {
   return TraceInfoUtil.getJavaNode(myTypeName, myFileName, myLineNumber);
 }