Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class JSCodeResume.NullResume<T extends ScriptOrFn<T>>
java.lang.Object
org.htmlunit.corejs.javascript.JSCodeResume.NullResume<T>
- All Implemented Interfaces:
Serializable,JSCodeResume<T>
- Enclosing interface:
- JSCodeResume<T extends ScriptOrFn<T>>
public static final class JSCodeResume.NullResume<T extends ScriptOrFn<T>>
extends Object
implements JSCodeResume<T>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.htmlunit.corejs.javascript.JSCodeResume
JSCodeResume.NullResume<T extends ScriptOrFn<T>> -
Field Summary
Fields inherited from interface org.htmlunit.corejs.javascript.JSCodeResume
NULL_RESUMABLE -
Method Summary
-
Method Details
-
resume
public Object resume(Context cx, T executableObject, Object state, VarScope scope, int operation, Object value) Description copied from interface:JSCodeResumeResuem execution of the code represented by this object.- Specified by:
resumein interfaceJSCodeResume<T extends ScriptOrFn<T>>- Parameters:
cx- should be context in which the call is being madeexecutableObject- should be function or script which owns this code.state- should be the state object created at some previous point when execution was yielded.scope- should be the scope in which the code will be executed.operation- should be one of the constants defined onNativeGeneratorand represents the operation being performed.value- represents the value being passed into the generator (see https://tc39.es/ecma262/#sec-generatorresume for details).- Returns:
- the result of executing the code.
-