congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ObjCClass.getProtocols
Code IndexAdd Tabnine to your IDE (free)

How to use
getProtocols
method
in
org.robovm.objc.ObjCClass

Best Java code snippets using org.robovm.objc.ObjCClass.getProtocols (Showing top 4 results out of 315)

origin: robovm/robovm

@SuppressWarnings("unchecked")
private static List<String> getProtocols(long handle, boolean isProtocol) {
  final long protocols = isProtocol ? ObjCRuntime.protocol_copyProtocolList(handle, 0) 
      : ObjCRuntime.class_copyProtocolList(handle, 0);
  if (protocols == 0) {
    return (List<String>) Collections.EMPTY_LIST;
  }
  ArrayList<String> names = new ArrayList<>();
  for (long protos = protocols; VM.getPointer(protos) != 0; protos += Bro.IS_64BIT ? 8 : 4) {
    long protocol = VM.getPointer(protocols);
    names.add(VM.newStringUTF(ObjCRuntime.protocol_getName(protocol)));
  }
  for (long protos = protocols; VM.getPointer(protos) != 0; protos += Bro.IS_64BIT ? 8 : 4) {
    long protocol = VM.getPointer(protocols);
    names.addAll(getProtocols(protocol, true));
  }
  VM.free(protocols);
  return names;
}
origin: robovm/robovm

for (String protocol : getProtocols(classPtr, false)) {
  Class<? extends ObjCObject> cls = allNativeProtocolProxies.get(protocol);
  if (cls != null) {
  c = getByNameNotLoaded(VM.newStringUTF(ObjCRuntime.class_getName(classPtr)));
  if (c == null) {
    for (String protocol : getProtocols(classPtr, false)) {
      Class<? extends ObjCObject> cls = allNativeProtocolProxies.get(protocol);
      if (cls != null) {
origin: com.gluonhq/robovm-objc

@SuppressWarnings("unchecked")
private static List<String> getProtocols(long handle, boolean isProtocol) {
  final long protocols = isProtocol ? ObjCRuntime.protocol_copyProtocolList(handle, 0) 
      : ObjCRuntime.class_copyProtocolList(handle, 0);
  if (protocols == 0) {
    return (List<String>) Collections.EMPTY_LIST;
  }
  ArrayList<String> names = new ArrayList<>();
  for (long protos = protocols; VM.getPointer(protos) != 0; protos += Bro.IS_64BIT ? 8 : 4) {
    long protocol = VM.getPointer(protocols);
    names.add(VM.newStringUTF(ObjCRuntime.protocol_getName(protocol)));
  }
  for (long protos = protocols; VM.getPointer(protos) != 0; protos += Bro.IS_64BIT ? 8 : 4) {
    long protocol = VM.getPointer(protocols);
    names.addAll(getProtocols(protocol, true));
  }
  VM.free(protocols);
  return names;
}
origin: com.gluonhq/robovm-objc

for (String protocol : getProtocols(classPtr, false)) {
  Class<? extends ObjCObject> cls = allNativeProtocolProxies.get(protocol);
  if (cls != null) {
  c = getByNameNotLoaded(VM.newStringUTF(ObjCRuntime.class_getName(classPtr)));
  if (c == null) {
    for (String protocol : getProtocols(classPtr, false)) {
      Class<? extends ObjCObject> cls = allNativeProtocolProxies.get(protocol);
      if (cls != null) {
org.robovm.objcObjCClassgetProtocols

Popular methods of ObjCClass

  • getByType
  • getHandle
  • getName
  • getType
  • registerCustomClass
  • <init>
  • findCallbacks
  • getByNameNotLoaded
  • getCallbacks
  • getCustomClassName
  • getFromObject
  • isCustom
  • getFromObject,
  • isCustom,
  • isObjCProxy,
  • register,
  • toObjCClass

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Permission (java.security)
    Legacy security code; do not use.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now