public class JSInterface extends Object
Constructor and Description |
---|
JSInterface(Class<?> jsInterface) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getInterface()
Returns the class which defines this instance of JavaScript interface
|
Collection<JSInterface> |
getJSInterfaceDependencies()
Returns all JavaScript interfaces which are dependencies of this interface as specified by
Dependency.interfaces() . |
JSMethod |
getJSMethod(String methodName,
Object... arguments)
Retrieves JavaScript interface method with given name and arguments.
|
String |
getName()
Returns the name of defined JavaScript interface as specified by
JavaScript annotation. |
ExecutionResolver |
getResolver()
Returns
ExecutionResolver for this interface as specified by JavaScript.executionResolver() . |
Collection<String> |
getSourceDependencies()
Returns all resources which are dependencies of this interface as specified by
Dependency.sources() . |
boolean |
isInstallable()
Returns true if this interface is
InstallableJavaScript . |
String |
toString() |
public JSInterface(Class<?> jsInterface)
public Class<?> getInterface()
public String getName()
Returns the name of defined JavaScript interface as specified by JavaScript
annotation.
If no name is specified, the simple name of an implementation type is used instead.
public Collection<String> getSourceDependencies()
Dependency.sources()
.public Collection<JSInterface> getJSInterfaceDependencies()
Dependency.interfaces()
.public JSMethod getJSMethod(String methodName, Object... arguments)
public boolean isInstallable()
InstallableJavaScript
.public ExecutionResolver getResolver()
ExecutionResolver
for this interface as specified by JavaScript.executionResolver()
.Copyright © 2016 JBoss by Red Hat. All rights reserved.