Package com.sun.jna.platform.mac
Class CoreFoundation.CFTypeRef
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.mac.CoreFoundation.CFTypeRef
- All Implemented Interfaces:
NativeMapped
- Direct Known Subclasses:
CoreFoundation.CFAllocatorRef,CoreFoundation.CFArrayRef,CoreFoundation.CFBooleanRef,CoreFoundation.CFDataRef,CoreFoundation.CFDictionaryRef,CoreFoundation.CFNumberRef,CoreFoundation.CFStringRef,DiskArbitration.DADiskRef,DiskArbitration.DASessionRef
- Enclosing interface:
- CoreFoundation
The
CFTypeRef type is the base type defined in Core Foundation. It is
used as the type and return value in several polymorphic functions. It is a
generic object reference that acts as a placeholder for other true Core
Foundation objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvenience method forCoreFoundation.CFGetTypeID(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)on this object.booleanisTypeID(CoreFoundation.CFTypeID typeID) Test whether this object has the specified IDvoidrelease()Convenience method forCoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)on this object.voidretain()Convenience method forCoreFoundation.CFRetain(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)on this object.Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Constructor Details
-
CFTypeRef
public CFTypeRef() -
CFTypeRef
-
-
Method Details
-
getTypeID
Convenience method forCoreFoundation.CFGetTypeID(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)on this object.- Returns:
- The
CoreFoundation.CFTypeID
-
isTypeID
Test whether this object has the specified ID- Parameters:
typeID- TheCoreFoundation.CFTypeIDfor the class to test- Returns:
- true if this object has the same ID as
typeID
-
retain
public void retain()Convenience method forCoreFoundation.CFRetain(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)on this object. -
release
public void release()Convenience method forCoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)on this object.
-