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 browser)
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 SimpleScriptable>[] |
getClasses() |
Map<Class<?>,Class<? extends HtmlUnitScriptable>> |
getDomJavaScriptMapping()
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 SimpleScriptable>[] getClasses()
public Iterable<ClassConfiguration> getAll()
public static ClassConfiguration getClassConfiguration(Class<? extends HtmlUnitScriptable> klass, BrowserVersion browser)
klass
.klass
- the classbrowser
- 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 Map<Class<?>,Class<? extends HtmlUnitScriptable>> getDomJavaScriptMapping()
Copyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.