1 55 56 package org.apache.bsf.debug.jsdi; 57 58 import java.rmi.Remote ; 59 import java.rmi.RemoteException ; 60 61 76 77 public interface JsObject extends Remote { 78 79 86 public static final int DONTDELETE = 0x04; 87 96 public static final int DONTENUM = 0x02; 97 105 public static final int EMPTY = 0x00; 106 113 public static final int INTERNAL = 0x05; 114 121 public static final int READONLY = 0x01; 122 123 131 public void define(String propertyName, Object value, int attributes) 132 throws RemoteException ; 133 162 public void delete(int index) throws RemoteException ; 163 185 public void delete(String name) throws RemoteException ; 186 187 224 public Object get(String name) throws RemoteException ; 225 public Object get(int index) throws RemoteException ; 226 227 233 public String getClassName() throws RemoteException ; 234 235 248 public Object getDefaultValue(Class hint) throws RemoteException ; 249 250 266 public Object [] getIds(boolean all) throws RemoteException ; 267 268 272 public JsObject getPrototype() throws RemoteException ; 273 274 284 public JsObject getScope() throws RemoteException ; 285 286 298 public boolean has(int index) throws RemoteException ; 299 300 312 public boolean has(String name) throws RemoteException ; 313 314 333 public boolean hasInstance(JsObject instance) throws RemoteException ; 334 public boolean isFunction() throws RemoteException ; 335 public boolean isScript() throws RemoteException ; 336 337 346 public void put(int index, Object value) throws RemoteException ; 347 348 377 public void put(String name, Object value) throws RemoteException ; 378 379 383 public void setPrototype(JsObject prototype) throws RemoteException ; 384 385 386 390 public void setScope(JsObject scope) throws RemoteException ; 391 392 397 } 398 | Popular Tags |