blob: bf91ae9b4f18f7ba65e8d8ae8142f4fb3faf8e63 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.jsdt.debug.core.model;
import org.eclipse.debug.core.model.IThread;
import org.eclipse.wst.jsdt.debug.core.jsdi.NullValue;
import org.eclipse.wst.jsdt.debug.core.jsdi.Value;
/**
* JavaScript thread description
*
* @since 1.0
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*/
public interface IJavaScriptThread extends IThread {
/**
* Allows the given expression to be evaluated and returns the {@link Value}
* of the evaluation.<br>
* <br>
* This method cannot return <code>null</code> and will return a value with {@link NullValue} instead.
*
* @param expression the expression to evaluate, <code>null</code> is accepted and will cause a value
* backed by {@link NullValue} to be returned
* @return the {@link IJavaScriptValue} from the evaluation never <code>null</code>
*/
public IJavaScriptValue evaluate(String expression);
/**
* Returns the total stack frame count
*
* @return the stack frame count
*/
public int getFrameCount();
}