org.rococoa.cocoa.foundation
Class NSGarbageCollector

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSGarbageCollector
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSGarbageCollector
extends NSObject
implements ObjCObject

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSGarbageCollector._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSGarbageCollector()
           
 
Method Summary
static NSGarbageCollector alloc()
           
abstract  void collectExhaustively()
          collects iteratively, but subject to interruption on user input
Original signature : -(void)collectExhaustively
native declaration : NSGarbageCollector.h:34
abstract  void collectIfNeeded()
          collects if thresholds crossed, but subject to interruption on user input
Original signature : -(void)collectIfNeeded
native declaration : NSGarbageCollector.h:33
static NSGarbageCollector defaultCollector()
          Returns nil if this process is not running with garbage collection
Original signature : +(id)defaultCollector
native declaration : NSGarbageCollector.h:24
abstract  void disable()
          temporarily disable collections
Original signature : -(void)disable
native declaration : NSGarbageCollector.h:29
abstract  void disableCollectorForPointer(Pointer ptr)
          references outside the heap, globals, and the stack, e.g. unscanned memory, malloc memory, must be tracked by the collector
this pointer will not be collected...
abstract  void enable()
          reenable disabled collections (must be called once per call to disableCollector)
Original signature : -(void)enable
native declaration : NSGarbageCollector.h:30
abstract  void enableCollectorForPointer(Pointer ptr)
          ...until this (stacking) call is made
Original signature : -(void)enableCollectorForPointer:(void*)
native declaration : NSGarbageCollector.h:38
static NSGarbageCollector._class_ getNSClass()
           
abstract  boolean isCollecting()
          Original signature : -(BOOL)isCollecting
native declaration : NSGarbageCollector.h:27
abstract  boolean isEnabled()
          Original signature : -(BOOL)isEnabled
native declaration : NSGarbageCollector.h:31
static NSGarbageCollector new_()
           
abstract  Pointer zone()
          Legacy.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass
 

Constructor Detail

NSGarbageCollector

public NSGarbageCollector()
Method Detail

defaultCollector

public static NSGarbageCollector defaultCollector()
Returns nil if this process is not running with garbage collection
Original signature : +(id)defaultCollector
native declaration : NSGarbageCollector.h:24


isCollecting

public abstract boolean isCollecting()
Original signature : -(BOOL)isCollecting
native declaration : NSGarbageCollector.h:27


disable

public abstract void disable()
temporarily disable collections
Original signature : -(void)disable
native declaration : NSGarbageCollector.h:29


enable

public abstract void enable()
reenable disabled collections (must be called once per call to disableCollector)
Original signature : -(void)enable
native declaration : NSGarbageCollector.h:30


isEnabled

public abstract boolean isEnabled()
Original signature : -(BOOL)isEnabled
native declaration : NSGarbageCollector.h:31


collectIfNeeded

public abstract void collectIfNeeded()
collects if thresholds crossed, but subject to interruption on user input
Original signature : -(void)collectIfNeeded
native declaration : NSGarbageCollector.h:33


collectExhaustively

public abstract void collectExhaustively()
collects iteratively, but subject to interruption on user input
Original signature : -(void)collectExhaustively
native declaration : NSGarbageCollector.h:34


disableCollectorForPointer

public abstract void disableCollectorForPointer(Pointer ptr)
references outside the heap, globals, and the stack, e.g. unscanned memory, malloc memory, must be tracked by the collector
this pointer will not be collected...
Original signature : -(void)disableCollectorForPointer:(void*)
native declaration : NSGarbageCollector.h:37


enableCollectorForPointer

public abstract void enableCollectorForPointer(Pointer ptr)
...until this (stacking) call is made
Original signature : -(void)enableCollectorForPointer:(void*)
native declaration : NSGarbageCollector.h:38


zone

public abstract Pointer zone()
Legacy.
The garbage collector provides an "NSZone" interface for legacy code that attempts zone affinity for allocations. (The zone used by malloc(3) continues to operate in parallel). In a garbage collected progam, "NSDefaultMallocZone()" provides the same zone as this call, but with a now misleading name. (All heap objects in fact return this same zone, referred internally as the "auto" zone).
Allocation of garbage collected memory should be done with the NSAllocateCollectable() call, introduced in 10.4.
For legacy purposes, however, memory can be allocated using this zone via NSZoneMalloc() and returned via NSZoneFree(). This memory will be unscanned and will not be normally collected (unless enableCollectorForPointer: is called upon it).
Original signature : -(NSZone*)zone
native declaration : NSGarbageCollector.h:46

Specified by:
zone in interface NSObject

alloc

public static NSGarbageCollector alloc()

new_

public static NSGarbageCollector new_()

getNSClass

public static NSGarbageCollector._class_ getNSClass()


Copyright © 2009. All Rights Reserved.