public abstract class AbstractJavaScriptConfiguration extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractJavaScriptConfiguration(BrowserVersion browser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<ClassConfiguration> |
getAll()
Gets all the configurations.
|
static ClassConfiguration |
getClassConfiguration(Class<? extends HtmlUnitScriptable> klass,
BrowserVersion browserVersion)
Returns the class configuration of the given
klass . |
ClassConfiguration |
getClassConfiguration(String hostClassName)
Gets the class configuration for the supplied JavaScript class name.
|
protected abstract Class<? extends HtmlUnitScriptable>[] |
getClasses() |
Class<? extends HtmlUnitScriptable> |
getDomJavaScriptMappingFor(Class<?> clazz)
Returns an immutable map containing the DOM to JavaScript mappings.
|
static boolean |
isCompatible(SupportedBrowser browser1,
SupportedBrowser browser2)
Returns whether the two
SupportedBrowser are compatible or not. |
protected AbstractJavaScriptConfiguration(BrowserVersion browser)
browser
- the browser version to useprotected abstract Class<? extends HtmlUnitScriptable>[] getClasses()
public Iterable<ClassConfiguration> getAll()
public static ClassConfiguration getClassConfiguration(Class<? extends HtmlUnitScriptable> klass, BrowserVersion browserVersion)
klass
.klass
- the classbrowserVersion
- the browser versionpublic static boolean isCompatible(SupportedBrowser browser1, SupportedBrowser browser2)
SupportedBrowser
are compatible or not.browser1
- the first SupportedBrowser
browser2
- the second SupportedBrowser
SupportedBrowser
are compatible or notpublic ClassConfiguration getClassConfiguration(String hostClassName)
hostClassName
- the JavaScript class namepublic Class<? extends HtmlUnitScriptable> getDomJavaScriptMappingFor(Class<?> clazz)
clazz
- the class to get the scriptable forCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.