edu.rice.cs.drjava.model.repl
Interface JavaInterpreter
- All Known Implementing Classes:
- DynamicJavaAdapter
- public interface JavaInterpreter
Interface for repl interpreters.
- Version:
- $Id: JavaInterpreter.java,v 1.13 2002/02/08 14:22:21 brianstoler Exp $
Field Summary |
static Object |
NO_RESULT
Value returned to indicate no result. |
NO_RESULT
public static final Object NO_RESULT
- Value returned to indicate no result.
interpret
public Object interpret(String s)
throws ExceptionReturnedException
- Interprets the given string.
- Parameters:
s
- Java source to interpret- Returns:
- The result of the interpretation, or
NO_RESULT
if
the interpretation had no return value.
addClassPath
public void addClassPath(String path)
- Adds the given path to the interpreter's classpath.
- Parameters:
path
- Path to add
setPackageScope
public void setPackageScope(String packageName)
- Set the scope for unqualified names to the given package.
- Parameters:
packageName
- Package to assume scope of.