Class JSInterface

java.lang.Object
org.jboss.arquillian.graphene.javascript.JSInterface

public class JSInterface extends Object
Represents the JavaScript interface instance
Author:
Lukas Fryc
  • Constructor Details

    • JSInterface

      public JSInterface(Class<?> jsInterface)
  • Method Details

    • getInterface

      public Class<?> getInterface()
      Returns the class which defines this instance of JavaScript interface
    • getName

      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.

    • getSourceDependencies

      public Collection<String> getSourceDependencies()
      Returns all resources which are dependencies of this interface as specified by Dependency.sources().
    • getJSInterfaceDependencies

      public Collection<JSInterface> getJSInterfaceDependencies()
      Returns all JavaScript interfaces which are dependencies of this interface as specified by Dependency.interfaces().
    • getJSMethod

      public JSMethod getJSMethod(String methodName, Object... arguments)
      Retrieves JavaScript interface method with given name and arguments.
    • isInstallable

      public boolean isInstallable()
      Returns true if this interface is InstallableJavaScript.
    • getResolver

      public ExecutionResolver getResolver()
      Returns ExecutionResolver for this interface as specified by JavaScript.executionResolver().
    • toString

      public String toString()
      Overrides:
      toString in class Object