src/jdk/nashorn/internal/runtime/GlobalObject.java

changeset 769
5a1ae83c295f
parent 610
ed3da7a574a0
equal deleted inserted replaced
768:27d6e99ae970 769:5a1ae83c295f
209 * @return default value 209 * @return default value
210 */ 210 */
211 public Object getDefaultValue(ScriptObject sobj, Class<?> typeHint); 211 public Object getDefaultValue(ScriptObject sobj, Class<?> typeHint);
212 212
213 /** 213 /**
214 * Find the compiled Class for the given script source, if available
215 *
216 * @param source Source object of the script
217 * @return compiled Class object or null
218 */
219 public Class<?> findCachedClass(Source source);
220
221 /**
222 * Put the Source associated Class object in the Source-to-Class cache
223 *
224 * @param source Source of the script
225 * @param clazz compiled Class object for the source
226 */
227 public void cacheClass(Source source, Class<?> clazz);
228
229 /**
230 * Get cached InvokeByName object for the given key 214 * Get cached InvokeByName object for the given key
231 * @param key key to be associated with InvokeByName object 215 * @param key key to be associated with InvokeByName object
232 * @param creator if InvokeByName is absent 'creator' is called to make one (lazy init) 216 * @param creator if InvokeByName is absent 'creator' is called to make one (lazy init)
233 * @return InvokeByName object associated with the key. 217 * @return InvokeByName object associated with the key.
234 */ 218 */

mercurial