Class

public class Class extends ObjCObject

Objective-C Class object.

Constructors

Class

protected Class(Pointer peer)

Constructs a Class from a pointer.

Parameters:
  • peer – Pointer

Class

public Class(ObjCObject obj)

Get the class from an ObjCObject and construct a Class from it.

Parameters:
  • obj – Objective-C object

Class

public Class(String name)

Construct a Class from a class name.

Parameters:
  • name – Objective-C class name

Class

public Class(String name, boolean isObjC)

Construct a Class from an Objective-C or Java class name.

Parameters:
  • name – Objective-C or Java class name
  • isObjC – Is Objective-C

Class

public Class(java.lang.Class<? extends ObjCObject> clazz)

Constructs a respective Class from a Java class.

Parameters:
  • clazz – Java class

Methods

fromJavaClass

public static Class fromJavaClass(java.lang.Class<? extends ObjCObject> clazz)

Returns the Objective-C pair of a Java class.

Parameters:
  • clazz – Java class
Returns:

Objective-C class

getObjCClassName

public static String getObjCClassName(java.lang.Class<? extends ObjCObject> type)

Gets Objective-C name for Java class.

Parameters:
  • type – Java class
Returns:

Objective-C class name

getSuper

public Class getSuper()

Returns the super class.

Returns:Objective-C superclass