methods
Methods of a class or an object.
(m)=methods(a)
Inputs
a An object or class.
Outputs
m A list of methods of the class, or, if the input is an object, of the class of which the input is an instance.


Example
>>class A
      >var x
      >function A(x)
      >   this.x=x
      >end
      >function add(y)
      >  return x+y
      >end
      >function neg()
      >   return -x
      >end
      >end
>>methods(A.class)
[A.add]
[A.neg]
>>a=new A(20);
>>methods(A.class)[1](a,10)
   30
>>methods(A.class)[2](a)
   -20
>>methods(HashMap.class)
[Ljava.lang.reflect.Method;@ce2187
  public java.lang.Object java.util.HashMap.get(java.lang.Object)
  public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)
  public java.lang.Object java.util.HashMap.clone()
  public void java.util.HashMap.clear()
  .... (Long list truncated)
>b>>>a=new HashMap()
>>a.put("First",[2 3 4])
>>a.put(10,20)
>>a.get("First")
          2          3          4

>>a.get(10)
        20
>>methods(HashMap.class)[2](a,"Second",1+j_3)
>>methods(HashMap.class)[2](a,"THIRD",randn(2,2,2))
>>a
{THIRD=com.jm.core.DoubleNDArray@1315d34, Second=com.jm.core.ComplexVariant@1de2
56f, 10=20, First=[[D@16bd8ea}
>>a.get("Second")
               1 +               3i
>>a.get("THIRD")
[:,1:2, 1]
      -0.6429       -0.403
      -0.0414       0.9213
[:,1:2, 2]
      -0.1163      -1.0047
      -1.5773       0.8583

>>methods(HashMap.class)[1](a,"THIRD")
[:,1:2, 1]
      -0.6429       -0.403
      -0.0414       0.9213
[:,1:2, 2]
      -0.1163      -1.0047
      -1.5773       0.8583