/** * Returns public information about the language of this frame. * * @return the language info, or <code>null</code> when no language is associated with this * frame. * @since 1.0 */ public LanguageInfo getLanguage() { verifyValidState(true); RootNode root = findCurrentRoot(); if (root == null) { return null; } return root.getLanguageInfo(); }
DebugValue wrapHeapValue(Object result) { LanguageInfo language; RootNode root = findCurrentRoot(); if (root != null) { language = root.getLanguageInfo(); } else { language = null; } return new HeapValue(event.getSession(), language, null, result); }
/** * A description of the AST (expected to be a method or procedure name in most languages) that * identifies the AST for the benefit of guest language programmers using tools; it might * appear, for example in the context of a stack dump or trace and is not expected to be called * often. If the language does not provide such a description then <code>null</code> is * returned. * * <p> * This method is thread-safe. * * @since 0.17 */ public String getName() { verifyValidState(true); RootNode root = findCurrentRoot(); if (root == null) { return null; } try { return root.getName(); } catch (Throwable e) { /* Throw error if assertions are enabled. */ try { assert false; } catch (AssertionError e1) { throw e; } return null; } }
RootNode root = findCurrentRoot(); if (root == null) { return true;
RootNode root = findCurrentRoot(); if (root == null) { return true;
DebugValue wrapHeapValue(Object result) { LanguageInfo language; RootNode root = findCurrentRoot(); if (root != null) { language = root.getLanguageInfo(); } else { language = null; } return new HeapValue(event.getSession().getDebugger(), language, null, result); }
/** * A description of the AST (expected to be a method or procedure name in most languages) that * identifies the AST for the benefit of guest language programmers using tools; it might * appear, for example in the context of a stack dump or trace and is not expected to be called * often. If the language does not provide such a description then <code>null</code> is * returned. * * <p> * This method is thread-safe. * * @since 0.17 */ public String getName() throws DebugException { verifyValidState(true); RootNode root = findCurrentRoot(); if (root == null) { return null; } try { return root.getName(); } catch (ThreadDeath td) { throw td; } catch (Throwable ex) { throw new DebugException(event.getSession(), ex, root.getLanguageInfo(), null, true, null); } }
verifyValidState(false); SuspendedContext context = getContext(); RootNode root = findCurrentRoot(); if (root == null) { return null;
verifyValidState(false); SuspendedContext context = getContext(); RootNode root = findCurrentRoot(); if (root == null) { return null;