1 55 56 package org.apache.bsf; 57 58 import java.util.Vector ; 59 import java.beans.PropertyChangeListener ; 60 61 import org.apache.bsf.util.CodeBuffer; 62 63 84 public interface BSFEngine extends PropertyChangeListener { 85 86 90 public void disconnectedDebuggerNotify(); 91 92 96 public Object getSpecificDebuggingInterface(); 97 98 100 public void placeBreakpointAtLine(int brkptid, String docname, int lineno) 101 throws BSFException; 102 103 public void placeBreakpointAtOffset(int brkptid, String docname, int offset) 104 throws BSFException; 105 106 public void removeBreakpoint(String docname, int brkptid) 107 throws BSFException; 108 109 public void setEntryExit(String docname, boolean on) 110 throws BSFException; 111 112 130 public Object apply( 131 String source, 132 int lineNo, 133 int columnNo, 134 Object funcBody, 135 Vector paramNames, 136 Vector arguments) 137 throws BSFException; 138 153 public Object call(Object object, String name, Object [] args) 154 throws BSFException; 155 170 public void compileApply( 171 String source, 172 int lineNo, 173 int columnNo, 174 Object funcBody, 175 Vector paramNames, 176 Vector arguments, 177 CodeBuffer cb) 178 throws BSFException; 179 194 public void compileExpr( 195 String source, 196 int lineNo, 197 int columnNo, 198 Object expr, 199 CodeBuffer cb) 200 throws BSFException; 201 216 public void compileScript( 217 String source, 218 int lineNo, 219 int columnNo, 220 Object script, 221 CodeBuffer cb) 222 throws BSFException; 223 232 public void declareBean(BSFDeclaredBean bean) throws BSFException; 233 248 public Object eval(String source, int lineNo, int columnNo, Object expr) 249 throws BSFException; 250 265 public void exec(String source, int lineNo, int columnNo, Object script) 266 throws BSFException; 267 268 284 public void initialize(BSFManager mgr, String lang, Vector declaredBeans) 285 throws BSFException; 286 289 public void terminate(); 290 297 public void undeclareBean(BSFDeclaredBean bean) throws BSFException; 298 } 299 | Popular Tags |