edu.rice.cs.drjava.model.repl
Class DynamicJavaAdapter
java.lang.Object
|
+--edu.rice.cs.drjava.model.repl.DynamicJavaAdapter
- All Implemented Interfaces:
- JavaInterpreter
- public class DynamicJavaAdapter
- extends Object
- implements JavaInterpreter
An implementation of the interpreter for the repl pane.
- Version:
- $Id: DynamicJavaAdapter.java,v 1.31 2002/08/23 15:52:33 csreis Exp $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_djInterpreter
private Interpreter _djInterpreter
DynamicJavaAdapter
public DynamicJavaAdapter()
- Constructor.
interpret
public Object interpret(String s)
throws ExceptionReturnedException
- Interprets a string as Java source.
- Specified by:
interpret
in interface JavaInterpreter
- Parameters:
s
- the string to interpret- Returns:
- the Object generated by the running of s
addClassPath
public void addClassPath(String path)
- Adds a path to the current classpath.
- Specified by:
addClassPath
in interface JavaInterpreter
- Parameters:
path
- the path to add
setPackageScope
public void setPackageScope(String packageName)
- Set the scope for unqualified names to the given package.
- Specified by:
setPackageScope
in interface JavaInterpreter
- Parameters:
packageName
- Package to assume scope of.