public static final long sel_registerName(String selectorName){ try { return longValue(invokeMethod(OS.class, "sel_registerName", new Object[] { selectorName })); }catch (Throwable throwable){ throwable.printStackTrace(); } return 0; }
public static final long objc_lookUpClass(String classname) throws Throwable{ return longValue(invokeMethod(OS.class, "objc_lookUpClass", new Object[] { classname })); }
public static final long objc_allocateClassPair(String name, long extraBytes) throws Throwable{ return longValue(invokeMethod(OS.class, "objc_allocateClassPair", new Object[] { OS.class.getField("class_NSObject").get(OS.class), name, osType(extraBytes) })); }
public static final boolean class_addIvar(long cls, byte[] name, long size, byte alignment, byte[] types) throws Throwable{ return boolValue(invokeMethod(OS.class, "class_addIvar", new Object[] { osType(cls), name, osType(size), new Byte(alignment), types })); }
public static final long object_setInstanceVariable(Object idValue, byte[] name, long value) throws Throwable{ return longValue(invokeMethod(OS.class, "object_setInstanceVariable", new Object[] { idValue , name, osType(value) })); }
public static final boolean class_addMethod(long cls, long name, long imp, String types) throws Throwable{ return boolValue(invokeMethod(OS.class,"class_addMethod", new Object[] { osType(cls), osType(name), osType(imp), types })); }
public static final void objc_registerClassPair(long cls) throws Throwable{ invokeMethod(OS.class, "objc_registerClassPair", new Object[] { osType(cls) }); }
public static final long NewGlobalRef( Object object ) throws Throwable{ Method method = OS.class.getMethod("NewGlobalRef", new Class[] { Object.class }); return longValue( method.invoke(OS.class, new Object[] { object }) ) ; }
public static final void DeleteGlobalRef( long ref ) throws Throwable{ invokeMethod(OS.class, "DeleteGlobalRef", new Object[] { osType(ref) } ); }