1 7 8 package javax.script; 9 import java.util.List ; 10 import java.io.Writer ; 11 import java.io.Reader ; 12 13 24 public interface ScriptContext { 25 26 27 32 public static final int ENGINE_SCOPE = 100; 33 34 37 public static final int GLOBAL_SCOPE = 200; 38 39 40 55 public void setBindings(Bindings bindings, int scope); 56 57 67 public Bindings getBindings(int scope); 68 69 80 public void setAttribute(String name, Object value, int scope); 81 82 94 public Object getAttribute(String name, int scope); 95 96 107 public Object removeAttribute(String name, int scope); 108 109 122 public Object getAttribute(String name); 123 124 125 134 public int getAttributesScope(String name); 135 136 141 public Writer getWriter(); 142 143 144 149 public Writer getErrorWriter(); 150 151 156 public void setWriter(Writer writer); 157 158 159 164 public void setErrorWriter(Writer writer); 165 166 172 public Reader getReader(); 173 174 175 180 public void setReader(Reader reader); 181 182 188 public List <Integer > getScopes(); 189 } 190 | Popular Tags |