private static String createJsMethodInvocationExpression(String methodName,boolean isStatic,String... paramNames){
  StringBuilder sb=new StringBuilder();
  sb.append(isStatic ? WND : THIS);
  sb.append(".");
  sb.append(methodName);
  sb.append("(");
  for (int i=0; i < paramNames.length; i++) {
    if (i != 0) {
      sb.append(", ");
    }
    sb.append(paramNames[i]);
  }
  sb.append(");");
  return sb.toString();
}

private static String createJsMethodInvocationExpression ( String methodName , boolean isStatic , String ... paramNames ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( isStatic ? WND : THIS ) ; sb . append ( "." ) ; sb . append ( methodName ) ; sb . append ( "(" ) ; for ( int i = 0 ; i < paramNames . length ; i ++ ) { if ( i != 0 ) { sb . append ( ", " ) ; } sb . append ( paramNames [ i ] ) ; } sb . append ( ");" ) ; return sb . toString ( ) ; }
creates a jsni method invocation expression .
