importStatic
Add the static methods of a class to the current context as functions.
importStatic(classObject)
Inputs
classObject A Mathnium class in the current path or a Java class in the current class path.


Description

Once importStatic is called, all the static methods of the the input are available as functions in the current context.

Example
>>class A
>static function func(x)
>return x+2
>end
>end
>>// import the static method of the class A
>>importStatic(A.class)
>>// Equivalent to A.func(10)
>>func(10)
        12
>>// import the static methods of the class java.lang.Integer
>>importStatic(Integer.class)
>>// Equivalent to java.lang.Integer.reverseBytes(10)
>>a=reverseBytes(10)
>>a
 167772160
>>reverseBytes(a)
 10
>>// Equivalent to java.lang.Integer.parseInt("23")
>>parseInt("23")
        23
>>// Equivalent to java.lang.Integer.parseInt("23",4)
>>parseInt("23",4)
        11