Example usage for com.google.gwt.dev.shell.designtime JsValue toString

List of usage examples for com.google.gwt.dev.shell.designtime JsValue toString

Introduction

In this page you can find the example usage for com.google.gwt.dev.shell.designtime JsValue toString.

Prototype

@Override
public String toString() 

Source Link

Document

Produce a string representation of the JsValue.

Usage

From source file:com.google.gdt.eclipse.designer.moz.jsni.LowLevelMoz.java

License:Open Source License

/**
 * Print debug information for a JS method invocation.
 * //from   w  w  w  . j  a v a2s. c  o  m
 * TODO(jat): remove this method
 * 
 * @param methodName the name of the JS method being invoked
 * @param jsthis the JS object with the named method
 * @param jsargs an array of arguments to the method
 */
private static void printInvocationParams(String methodName, JsValue jsthis, JsValue[] jsargs) {
    System.out.println("LowLevelMoz.invoke:");
    System.out.println(" method = " + methodName);
    System.out.println(" # args = " + (jsargs.length));
    System.out.println(" jsthis = " + jsthis.toString());
    for (int i = 0; i < jsargs.length; ++i) {
        System.out.println(" jsarg[" + i + "] = " + jsargs[i].toString());
    }
    System.out.println("");
}