/** * Get local variables declared in this scope, valid at the current suspension point. Call this * method on {@link #getParent() parent}, to get values of variables declared in parent scope, * if any. * <p> * This method is not thread-safe and will throw an {@link IllegalStateException} if called on * another thread than it was created with. * * @since 0.26 */ public Iterable<DebugValue> getDeclaredValues() { return getVariables(); }
/** * Get local variables declared in this scope, valid at the current suspension point. Call this * method on {@link #getParent() parent}, to get values of variables declared in parent scope, * if any. * <p> * This method is not thread-safe and will throw an {@link IllegalStateException} if called on * another thread than it was created with. * * @throws DebugException when guest language code throws an exception * @since 0.26 */ public Iterable<DebugValue> getDeclaredValues() throws DebugException { return getVariables(); }
/** * Get a local variable declared in this scope by name. Call this method on {@link #getParent() * parent}, to get value of a variable declared in parent scope, if any. * <p> * This method is not thread-safe and will throw an {@link IllegalStateException} if called on * another thread than it was created with. * * @return a value of requested name, or <code>null</code> when no such value was found. * @since 0.26 */ public DebugValue getDeclaredValue(String name) { return getVariables().get(name); }
/** * Get a local variable declared in this scope by name. Call this method on {@link #getParent() * parent}, to get value of a variable declared in parent scope, if any. * <p> * This method is not thread-safe and will throw an {@link IllegalStateException} if called on * another thread than it was created with. * * @return a value of requested name, or <code>null</code> when no such value was found. * @throws DebugException when guest language code throws an exception * @since 0.26 */ public DebugValue getDeclaredValue(String name) throws DebugException { return getVariables().get(name); }