Package org.htmlunit.html
Enum HtmlPage.JavaScriptLoadResult
- All Implemented Interfaces:
Serializable
,Comparable<HtmlPage.JavaScriptLoadResult>
,java.lang.constant.Constable
- Enclosing class:
HtmlPage
Various possible external JavaScript file loading results.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe external JavaScript file was downloaded but was not compiled successfully.The external JavaScript file was not downloaded successfully.The load was aborted and nothing was done.The load was aborted and nothing was done.The external JavaScript file was downloaded and compiled successfully. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static HtmlPage.JavaScriptLoadResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOOP
The load was aborted and nothing was done. -
NO_CONTENT
The load was aborted and nothing was done. -
SUCCESS
The external JavaScript file was downloaded and compiled successfully. -
DOWNLOAD_ERROR
The external JavaScript file was not downloaded successfully. -
COMPILATION_ERROR
The external JavaScript file was downloaded but was not compiled successfully.
-
-
Constructor Details
-
JavaScriptLoadResult
private JavaScriptLoadResult()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-