static Test() { clazz = JClass.ForName ("Test"); _ctr = clazz.GetConstructor (); _foo = clazz.GetMethod ("foo", "(LControllable;)V"); _bar = clazz.GetMethod ("bar", "()LControllable;"); }
public JObject(JConstructor ctr, params object[] args) { JValue[] initArgs = JValue.Convert (args); IntPtr raw = NewObject (ctr.DeclaringClass.Handle, ctr.Handle, initArgs); if (raw == IntPtr.Zero) { JThrowable.CheckAndThrow (); } native = new HandleRef(this, raw); this.avoidDelete = false; }
static Prog() { clazz = JClass.ForName ("Prog"); _ctr = clazz.GetConstructor (); _max = clazz.GetMethod ("max", "(II)I"); _maxEx = clazz.GetMethod ("maxEx", "()I"); _hi = clazz.GetStaticMethod ("hi", "()V"); _foo = clazz.GetMethod ("foo", "()LProg;"); _fooA = clazz.GetMethod ("fooA", "()[LProg;"); _fooB = clazz.GetMethod ("fooB", "([LProg;)I"); _fooC = clazz.GetMethod ("fooC", "()[I"); _foo9 = clazz.GetMethod ("foo9", "([I)I"); _foo10 = clazz.GetMethod ("foo10", "([C)[C"); }
public JString(JConstructor ctr, params object[] args) : base(ctr, args) { }
protected Prog(JConstructor ctr, params object[] args) : base(ctr, args) { }