| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| package org.netbeans.modules.debugger.jpda.jdi; |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| // Generated by org.netbeans.modules.debugger.jpda.jdi.Generate class located in 'gensrc' folder, |
| // perform the desired modifications there and re-generate by "ant generate". |
| |
| /** |
| * Wrapper for StackFrame JDI class. |
| * Use methods of this class instead of direct calls on JDI objects. |
| * These methods assure that exceptions thrown from JDI calls are handled appropriately. |
| * |
| * @author Martin Entlicher |
| */ |
| public final class StackFrameWrapper { |
| |
| private StackFrameWrapper() {} |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static java.util.List<com.sun.jdi.Value> getArgumentValues0(com.sun.jdi.StackFrame a) throws org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "getArgumentValues", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).getArgumentValues()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| java.util.List<com.sun.jdi.Value> ret; |
| ret = a.getArgumentValues(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| return java.util.Collections.emptyList(); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| return java.util.Collections.emptyList(); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "getArgumentValues", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static java.util.List<com.sun.jdi.Value> getArgumentValues(com.sun.jdi.StackFrame a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "getArgumentValues", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).getArgumentValues()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| java.util.List<com.sun.jdi.Value> ret; |
| ret = a.getArgumentValues(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "getArgumentValues", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static com.sun.jdi.Value getValue(com.sun.jdi.StackFrame a, com.sun.jdi.LocalVariable b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "getValue", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).getValue({1})", |
| new Object[] {a, b}); |
| } |
| Object retValue = null; |
| try { |
| com.sun.jdi.Value ret; |
| ret = a.getValue(b); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "getValue", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static java.util.Map<com.sun.jdi.LocalVariable, com.sun.jdi.Value> getValues0(com.sun.jdi.StackFrame a, java.util.List<? extends com.sun.jdi.LocalVariable> b) throws org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "getValues", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).getValues({1})", |
| new Object[] {a, b}); |
| } |
| Object retValue = null; |
| try { |
| java.util.Map<com.sun.jdi.LocalVariable, com.sun.jdi.Value> ret; |
| ret = a.getValues(b); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| return java.util.Collections.emptyMap(); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| return java.util.Collections.emptyMap(); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "getValues", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static java.util.Map<com.sun.jdi.LocalVariable, com.sun.jdi.Value> getValues(com.sun.jdi.StackFrame a, java.util.List<? extends com.sun.jdi.LocalVariable> b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "getValues", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).getValues({1})", |
| new Object[] {a, b}); |
| } |
| Object retValue = null; |
| try { |
| java.util.Map<com.sun.jdi.LocalVariable, com.sun.jdi.Value> ret; |
| ret = a.getValues(b); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "getValues", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static com.sun.jdi.Location location(com.sun.jdi.StackFrame a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "location", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).location()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| com.sun.jdi.Location ret; |
| ret = a.location(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "location", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static void setValue(com.sun.jdi.StackFrame a, com.sun.jdi.LocalVariable b, com.sun.jdi.Value c) throws com.sun.jdi.InvalidTypeException, com.sun.jdi.ClassNotLoadedException, org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.ObjectCollectedExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "setValue", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).setValue({1}, {2})", |
| new Object[] {a, b, c}); |
| } |
| try { |
| a.setValue(b, c); |
| } catch (com.sun.jdi.InternalException ex) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (com.sun.jdi.ObjectCollectedException ex) { |
| throw new org.netbeans.modules.debugger.jpda.jdi.ObjectCollectedExceptionWrapper(ex); |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "setValue", |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.RET_VOID); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static com.sun.jdi.ObjectReference thisObject(com.sun.jdi.StackFrame a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "thisObject", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).thisObject()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| try { |
| com.sun.jdi.ObjectReference ret; |
| ret = a.thisObject(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException iex) { |
| if (iex.errorCode() == 35) { // INVALID_SLOT, see http://www.netbeans.org/issues/show_bug.cgi?id=163652 |
| return null; |
| } else { |
| throw iex; // re-throw the original |
| } |
| } |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "thisObject", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static com.sun.jdi.ThreadReference thread(com.sun.jdi.StackFrame a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "thread", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).thread()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| com.sun.jdi.ThreadReference ret; |
| ret = a.thread(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "thread", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static com.sun.jdi.LocalVariable visibleVariableByName(com.sun.jdi.StackFrame a, java.lang.String b) throws com.sun.jdi.AbsentInformationException, org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.NativeMethodExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "visibleVariableByName", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).visibleVariableByName({1})", |
| new Object[] {a, b}); |
| } |
| Object retValue = null; |
| try { |
| com.sun.jdi.LocalVariable ret; |
| ret = a.visibleVariableByName(b); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (com.sun.jdi.NativeMethodException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.NativeMethodExceptionWrapper(ex); |
| } catch (com.sun.jdi.AbsentInformationException ex) { |
| retValue = ex; |
| throw ex; |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "visibleVariableByName", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static java.util.List<com.sun.jdi.LocalVariable> visibleVariables0(com.sun.jdi.StackFrame a) throws com.sun.jdi.AbsentInformationException, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.NativeMethodExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "visibleVariables", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).visibleVariables()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| java.util.List<com.sun.jdi.LocalVariable> ret; |
| ret = a.visibleVariables(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| return java.util.Collections.emptyList(); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| return java.util.Collections.emptyList(); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (com.sun.jdi.NativeMethodException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.NativeMethodExceptionWrapper(ex); |
| } catch (com.sun.jdi.AbsentInformationException ex) { |
| retValue = ex; |
| throw ex; |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "visibleVariables", |
| retValue); |
| } |
| } |
| } |
| |
| // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY |
| public static java.util.List<com.sun.jdi.LocalVariable> visibleVariables(com.sun.jdi.StackFrame a) throws com.sun.jdi.AbsentInformationException, org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.NativeMethodExceptionWrapper { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart( |
| "com.sun.jdi.StackFrame", |
| "visibleVariables", |
| "JDI CALL: com.sun.jdi.StackFrame({0}).visibleVariables()", |
| new Object[] {a}); |
| } |
| Object retValue = null; |
| try { |
| java.util.List<com.sun.jdi.LocalVariable> ret; |
| ret = a.visibleVariables(); |
| retValue = ret; |
| return ret; |
| } catch (com.sun.jdi.InternalException ex) { |
| retValue = ex; |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex); |
| throw new org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper(ex); |
| } catch (com.sun.jdi.VMDisconnectedException ex) { |
| retValue = ex; |
| if (a instanceof com.sun.jdi.Mirror) { |
| com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine(); |
| try { |
| vm.dispose(); |
| } catch (com.sun.jdi.VMDisconnectedException vmdex) {} |
| } |
| throw new org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper(ex); |
| } catch (com.sun.jdi.InvalidStackFrameException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.InvalidStackFrameExceptionWrapper(ex); |
| } catch (com.sun.jdi.NativeMethodException ex) { |
| retValue = ex; |
| throw new org.netbeans.modules.debugger.jpda.jdi.NativeMethodExceptionWrapper(ex); |
| } catch (com.sun.jdi.AbsentInformationException ex) { |
| retValue = ex; |
| throw ex; |
| } catch (Error err) { |
| retValue = err; |
| throw err; |
| } catch (RuntimeException rex) { |
| retValue = rex; |
| throw rex; |
| } finally { |
| if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) { |
| org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd( |
| "com.sun.jdi.StackFrame", |
| "visibleVariables", |
| retValue); |
| } |
| } |
| } |
| |
| } |