JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit

Class ScriptResult



  • public final class ScriptResult
    extends Object 
    This object contains the result of executing a chunk of script code.
    Author:
    Mike Bowler, Marc Guillemot
    • Constructor Detail

      • ScriptResult

        public ScriptResult(Object javaScriptResult)
        Creates a new instance.
        Parameters:
        javaScriptResult - the object that was returned from the script engine
    • Method Detail

      • getJavaScriptResult

        public Object getJavaScriptResult()
        Returns the object that was the output of the script engine.
        Returns:
        the result from the script engine
      • isFalse

        public static boolean isFalse(ScriptResult scriptResult)
        Utility method testing if a script result is false.
        Parameters:
        scriptResult - a script result (may be null)
        Returns:
        true if scriptResult is false
      • isUndefined

        public static boolean isUndefined(ScriptResult scriptResult)
        Utility method testing if a script result is undefined (there was no return value).
        Parameters:
        scriptResult - a script result (may be null)
        Returns:
        true if scriptResult is undefined (there was no return value)
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /