Java 类org.eclipse.swt.internal.cocoa.OS 实例源码

项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
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;
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
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;
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
public static final long objc_lookUpClass(String classname) throws Throwable{
    return longValue(invokeMethod(OS.class, "objc_lookUpClass", new Object[] { classname }));
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
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) }));
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
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 }));
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
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) }));
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
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 }));
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
public static final void objc_registerClassPair(long cls) throws Throwable{
    invokeMethod(OS.class, "objc_registerClassPair", new Object[] { osType(cls) });
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
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 }) ) ;
}
项目:TuxGuitar-1.3.1-fork    文件:TGCocoa.java   
public static final void DeleteGlobalRef( long ref ) throws Throwable{
    invokeMethod(OS.class, "DeleteGlobalRef", new Object[] { osType(ref) } );
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
public static final long objc_lookUpClass(String classname) throws Throwable{
    return longValue(invokeMethod(OS.class, "objc_lookUpClass", new Object[] { classname }));
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
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) }));
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
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 }));
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
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) }));
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
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 }));
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
public static final void objc_registerClassPair(long cls) throws Throwable{
    invokeMethod(OS.class, "objc_registerClassPair", new Object[] { osType(cls) });
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
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 }) ) ;
}
项目:totallicks-tuxguitar    文件:TGCocoa.java   
public static final void DeleteGlobalRef( long ref ) throws Throwable{
    invokeMethod(OS.class, "DeleteGlobalRef", new Object[] { osType(ref) } );
}