org.stjs.javascript
Class JSNumberAdapter

java.lang.Object
  extended by org.stjs.javascript.JSNumberAdapter

public class JSNumberAdapter
extends Object

here are the methods existent in Javascript for number objects and inexistent in the Java counterpart. The generator should generate the correct code

Author:
acraciun

Constructor Summary
JSNumberAdapter()
           
 
Method Summary
static String toExponential(Number n, int positions)
           
static String toFixed(Number n, int positions)
           
static String toFixed(String n, int positions)
           
static String toPrecision(Number n, int positions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSNumberAdapter

public JSNumberAdapter()
Method Detail

toFixed

public static String toFixed(Number n,
                             int positions)

toFixed

public static String toFixed(String n,
                             int positions)

toExponential

public static String toExponential(Number n,
                                   int positions)

toPrecision

public static String toPrecision(Number n,
                                 int positions)


Copyright © 2013. All Rights Reserved.