org.rococoa.cocoa.foundation
Class NSScriptCommand

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSScriptCommand
All Implemented Interfaces:
NSCoding, NSObject, ObjCObject
Direct Known Subclasses:
NSCloneCommand, NSCloseCommand, NSCountCommand, NSCreateCommand, NSDeleteCommand, NSExistsCommand, NSGetCommand, NSMoveCommand, NSQuitCommand, NSSetCommand

public abstract class NSScriptCommand
extends NSObject
implements ObjCObject, NSCoding

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 NSScriptCommand._class_
           
static class NSScriptCommand._flags_struct
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSScriptCommand()
           
 
Method Summary
static NSScriptCommand alloc()
           
abstract  NSAppleEventDescriptor appleEvent()
          If the receiver was constructed by Cocoa Scripting's built-in Apple event handling, the Apple event descriptor from which it was constructed.
abstract  NSDictionary arguments()
          Original signature : -(NSDictionary*)arguments
native declaration : NSScriptCommand.h:65
abstract  NSScriptCommandDescription commandDescription()
          Original signature : -(NSScriptCommandDescription*)commandDescription
native declaration : NSScriptCommand.h:49
static NSScriptCommand createWithCommandDescription(NSScriptCommandDescription commandDef)
          Factory method
static NSScriptCommand currentCommand()
          If a command is being executed in the current thread by Cocoa Scripting's built-in Apple event handling (i.e., an instance of NSScriptCommand is handling an -executeCommand message at this instant, as the result of the dispatch of an Apple event), return the command.
abstract  NSObject directParameter()
          Original signature : -(id)directParameter
native declaration : NSScriptCommand.h:53
abstract  NSDictionary evaluatedArguments()
          Original signature : -(NSDictionary*)evaluatedArguments
native declaration : NSScriptCommand.h:66
abstract  NSObject evaluatedReceivers()
          Original signature : -(id)evaluatedReceivers
native declaration : NSScriptCommand.h:61
abstract  NSScriptCommand executeCommand()
          If -suspend is invoked during the invocation of this method, its return value is ignored by Cocoa Scripting's built-in Apple event handling.
static NSScriptCommand._class_ getNSClass()
           
abstract  NSScriptCommand initWithCommandDescription(NSScriptCommandDescription commandDef)
          Original signature : -(id)initWithCommandDescription:(NSScriptCommandDescription*)
native declaration : NSScriptCommand.h:47
abstract  boolean isWellFormed()
          Original signature : -(BOOL)isWellFormed
native declaration : NSScriptCommand.h:69
static NSScriptCommand new_()
           
abstract  NSObject performDefaultImplementation()
          If -suspend is invoked during the invocation of this method, its return value is ignored by Cocoa Scripting's built-in Apple event handling.
abstract  NSScriptObjectSpecifier receiversSpecifier()
          Original signature : -(NSScriptObjectSpecifier*)receiversSpecifier
native declaration : NSScriptCommand.h:57
abstract  void resumeExecutionWithResult(ObjCObject result)
          This method may be invoked in any thread, not just the one in which the corresponding invocation of -suspendExecution occurred.
abstract  NSAppleEventDescriptor scriptErrorExpectedTypeDescriptor()
          Original signature : -(NSAppleEventDescriptor*)scriptErrorExpectedTypeDescriptor
native declaration : NSScriptCommand.h:92
abstract  int scriptErrorNumber()
          Getters that match the above setters.
abstract  NSAppleEventDescriptor scriptErrorOffendingObjectDescriptor()
          Original signature : -(NSAppleEventDescriptor*)scriptErrorOffendingObjectDescriptor
native declaration : NSScriptCommand.h:91
abstract  NSString scriptErrorString()
          Original signature : -(NSString*)scriptErrorString
native declaration : NSScriptCommand.h:94
abstract  void setArguments(NSDictionary args)
          Original signature : -(void)setArguments:(NSDictionary*)
native declaration : NSScriptCommand.h:64
abstract  void setDirectParameter(ObjCObject directParameter)
          Original signature : -(void)setDirectParameter:(id)
native declaration : NSScriptCommand.h:52
abstract  void setReceiversSpecifier(NSScriptObjectSpecifier receiversRef)
          Original signature : -(void)setReceiversSpecifier:(NSScriptObjectSpecifier*)
native declaration : NSScriptCommand.h:56
abstract  void setScriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor errorExpectedTypeDescriptor)
          Original signature : -(void)setScriptErrorExpectedTypeDescriptor:(NSAppleEventDescriptor*)
native declaration : NSScriptCommand.h:84
abstract  void setScriptErrorNumber(int errorNumber)
          Set the error number, offending object descriptor, type descriptor, or message, respectively, that will be put in the reply to the Apple event from which this command was constructed, when execution of the command is completed, if the sender of the event requested a reply.
abstract  void setScriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor errorOffendingObjectDescriptor)
          Original signature : -(void)setScriptErrorOffendingObjectDescriptor:(NSAppleEventDescriptor*)
native declaration : NSScriptCommand.h:83
abstract  void setScriptErrorString(NSString errorString)
          Original signature : -(void)setScriptErrorString:(NSString*)
native declaration : NSScriptCommand.h:86
abstract  void suspendExecution()
          If the receiver is being executed in the current thread by Cocoa Scripting's built-in Apple event handling (i.e., would be returned by [NSScriptCommand currentCommand]), suspend the execution of the command.
 
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.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
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, zone
 

Constructor Detail

NSScriptCommand

public NSScriptCommand()
Method Detail

initWithCommandDescription

public abstract NSScriptCommand initWithCommandDescription(NSScriptCommandDescription commandDef)
Original signature : -(id)initWithCommandDescription:(NSScriptCommandDescription*)
native declaration : NSScriptCommand.h:47


createWithCommandDescription

public static NSScriptCommand createWithCommandDescription(NSScriptCommandDescription commandDef)
Factory method

See Also:
initWithCommandDescription(org.rococoa.cocoa.foundation.NSScriptCommandDescription)

commandDescription

public abstract NSScriptCommandDescription commandDescription()
Original signature : -(NSScriptCommandDescription*)commandDescription
native declaration : NSScriptCommand.h:49


setDirectParameter

public abstract void setDirectParameter(ObjCObject directParameter)
Original signature : -(void)setDirectParameter:(id)
native declaration : NSScriptCommand.h:52


directParameter

public abstract NSObject directParameter()
Original signature : -(id)directParameter
native declaration : NSScriptCommand.h:53


setReceiversSpecifier

public abstract void setReceiversSpecifier(NSScriptObjectSpecifier receiversRef)
Original signature : -(void)setReceiversSpecifier:(NSScriptObjectSpecifier*)
native declaration : NSScriptCommand.h:56


receiversSpecifier

public abstract NSScriptObjectSpecifier receiversSpecifier()
Original signature : -(NSScriptObjectSpecifier*)receiversSpecifier
native declaration : NSScriptCommand.h:57


evaluatedReceivers

public abstract NSObject evaluatedReceivers()
Original signature : -(id)evaluatedReceivers
native declaration : NSScriptCommand.h:61


setArguments

public abstract void setArguments(NSDictionary args)
Original signature : -(void)setArguments:(NSDictionary*)
native declaration : NSScriptCommand.h:64


arguments

public abstract NSDictionary arguments()
Original signature : -(NSDictionary*)arguments
native declaration : NSScriptCommand.h:65


evaluatedArguments

public abstract NSDictionary evaluatedArguments()
Original signature : -(NSDictionary*)evaluatedArguments
native declaration : NSScriptCommand.h:66


isWellFormed

public abstract boolean isWellFormed()
Original signature : -(BOOL)isWellFormed
native declaration : NSScriptCommand.h:69


performDefaultImplementation

public abstract NSObject performDefaultImplementation()
If -suspend is invoked during the invocation of this method, its return value is ignored by Cocoa Scripting's built-in Apple event handling.
Original signature : -(id)performDefaultImplementation
native declaration : NSScriptCommand.h:74


executeCommand

public abstract NSScriptCommand executeCommand()
If -suspend is invoked during the invocation of this method, its return value is ignored by Cocoa Scripting's built-in Apple event handling.
Original signature : -(id)executeCommand
native declaration : NSScriptCommand.h:78


setScriptErrorNumber

public abstract void setScriptErrorNumber(int errorNumber)
Set the error number, offending object descriptor, type descriptor, or message, respectively, that will be put in the reply to the Apple event from which this command was constructed, when execution of the command is completed, if the sender of the event requested a reply. If -setScriptErrorNumber: is invoked during an invocation of -executeCommand, the invocation of -executeCommand may stop invoking command handling methods in the receiver and return early.
Original signature : -(void)setScriptErrorNumber:(int)
native declaration : NSScriptCommand.h:81


setScriptErrorOffendingObjectDescriptor

public abstract void setScriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor errorOffendingObjectDescriptor)
Original signature : -(void)setScriptErrorOffendingObjectDescriptor:(NSAppleEventDescriptor*)
native declaration : NSScriptCommand.h:83


setScriptErrorExpectedTypeDescriptor

public abstract void setScriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor errorExpectedTypeDescriptor)
Original signature : -(void)setScriptErrorExpectedTypeDescriptor:(NSAppleEventDescriptor*)
native declaration : NSScriptCommand.h:84


setScriptErrorString

public abstract void setScriptErrorString(NSString errorString)
Original signature : -(void)setScriptErrorString:(NSString*)
native declaration : NSScriptCommand.h:86


scriptErrorNumber

public abstract int scriptErrorNumber()
Getters that match the above setters.
Original signature : -(int)scriptErrorNumber
native declaration : NSScriptCommand.h:89


scriptErrorOffendingObjectDescriptor

public abstract NSAppleEventDescriptor scriptErrorOffendingObjectDescriptor()
Original signature : -(NSAppleEventDescriptor*)scriptErrorOffendingObjectDescriptor
native declaration : NSScriptCommand.h:91


scriptErrorExpectedTypeDescriptor

public abstract NSAppleEventDescriptor scriptErrorExpectedTypeDescriptor()
Original signature : -(NSAppleEventDescriptor*)scriptErrorExpectedTypeDescriptor
native declaration : NSScriptCommand.h:92


scriptErrorString

public abstract NSString scriptErrorString()
Original signature : -(NSString*)scriptErrorString
native declaration : NSScriptCommand.h:94


currentCommand

public static NSScriptCommand currentCommand()
If a command is being executed in the current thread by Cocoa Scripting's built-in Apple event handling (i.e., an instance of NSScriptCommand is handling an -executeCommand message at this instant, as the result of the dispatch of an Apple event), return the command. Return nil otherwise. -setScriptErrorNumber: and -setScriptErrorString: messages sent to the returned command object will affect the reply event sent to the sender of the event from which the command was constructed, if the sender has requested a reply.
Original signature : +(NSScriptCommand*)currentCommand
native declaration : NSScriptCommand.h:99


appleEvent

public abstract NSAppleEventDescriptor appleEvent()
If the receiver was constructed by Cocoa Scripting's built-in Apple event handling, the Apple event descriptor from which it was constructed. The effects of mutating or retaining this descriptor are undefined, though it may be copied.
Original signature : -(NSAppleEventDescriptor*)appleEvent
native declaration : NSScriptCommand.h:102


suspendExecution

public abstract void suspendExecution()
If the receiver is being executed in the current thread by Cocoa Scripting's built-in Apple event handling (i.e., would be returned by [NSScriptCommand currentCommand]), suspend the execution of the command. Otherwise, do nothing. A matching invocation of -resumeExecutionWithResult: must be made.
Original signature : -(void)suspendExecution
native declaration : NSScriptCommand.h:105


resumeExecutionWithResult

public abstract void resumeExecutionWithResult(ObjCObject result)
This method may be invoked in any thread, not just the one in which the corresponding invocation of -suspendExecution occurred.
Original signature : -(void)resumeExecutionWithResult:(id)
native declaration : NSScriptCommand.h:111


alloc

public static NSScriptCommand alloc()

new_

public static NSScriptCommand new_()

getNSClass

public static NSScriptCommand._class_ getNSClass()


Copyright © 2009. All Rights Reserved.