| Package | Description |
|---|---|
| org.markysoft.vani.core.javascript | |
| org.markysoft.vani.core.locating.factory | |
| org.markysoft.vani.core.util |
| Modifier and Type | Field and Description |
|---|---|
protected JavaScriptSource<?> |
VaniJavaScriptExecutor.jsSource |
| Modifier and Type | Method and Description |
|---|---|
<T> JavaScriptSource<T> |
JavaScriptLoader.load(JavaScript javaScript,
Class<T> jsInterface,
VaniContext vaniContext)
This method is responsible for loading the javascript code from
filesystem or classpath.
|
| Modifier and Type | Method and Description |
|---|---|
List<JavaScriptSource<?>> |
JavaScriptSource.getDependencies() |
List<JavaScriptSource<?>> |
JavaScriptSource.getPlugins() |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaScriptSource.addDependency(JavaScriptSource dependency) |
void |
JavaScriptSource.addPlugin(JavaScriptSource<?> plugin) |
protected void |
VaniJavaScriptExecutor.appendSource(StringBuilder builder,
JavaScriptSource<?> jsSource,
Set<JavaScriptSource<?>> processingSources)
This method resolves the source code for specified
JavaScriptSource and set it to provided StringBuilder.The
builder will contains following things at the end in this order:
dependencies, which are not already available (see
DetectionScript) or already appended to the builder. |
protected boolean |
VaniJavaScriptExecutor.mustInject(JavaScriptSource<?> jsSource)
This method checks whether provided
JavaScriptSource declares a
detection script. |
protected <T> void |
JavaScriptLoader.setCallFunction(JavaScriptSource<T> jsSource,
VaniContext vaniContext)
This method will look for method annotated with
JsCallFunction in
the target interface of provided JavaScriptSource. |
protected <T> void |
JavaScriptLoader.setDetectedMethod(JavaScriptSource<T> jsSource)
This method will look for method annotated with (
DetectionScript
in taret interface of provided JavaScriptSource. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
VaniJavaScriptExecutor.appendSource(StringBuilder builder,
JavaScriptSource<?> jsSource,
Set<JavaScriptSource<?>> processingSources)
This method resolves the source code for specified
JavaScriptSource and set it to provided StringBuilder.The
builder will contains following things at the end in this order:
dependencies, which are not already available (see
DetectionScript) or already appended to the builder. |
void |
JavaScriptSource.setDependencies(List<JavaScriptSource<?>> dependencies) |
| Constructor and Description |
|---|
VaniJavaScriptExecutor(org.openqa.selenium.JavascriptExecutor jsExecutor,
JavaScriptSource<?> jsSource) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JavaScriptProxyFactory.createProxy(JavaScriptSource<T> jsSource) |
| Constructor and Description |
|---|
JavaScriptMethodInterceptor(JavaScriptSource<?> jsSource,
VaniContext vaniContext,
List<Object> manualJSInterfaceImplemenations) |
Copyright © 2016. All rights reserved.