org.rococoa.cocoa.foundation
Class NSExpression

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

public abstract class NSExpression
extends NSObject
implements ObjCObject, NSCoding, NSCopying

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 NSExpression._class_
           
 
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.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSExpression()
           
 
Method Summary
static NSExpression alloc()
           
abstract  NSArray arguments()
          array of expressions which will be passed as parameters during invocation of the selector on the operand of a function expression
Original signature : -(NSArray*)arguments
native declaration : NSExpression.h:109
abstract  NSObject collection()
          Original signature : -(id)collection
native declaration : NSExpression.h:112
abstract  NSObject constantValue()
          Original signature : -(id)constantValue
native declaration : NSExpression.h:104
static NSExpression createWithExpressionType(int type)
          Factory method
static NSExpression expressionForAggregate(NSArray subexpressions)
          Expression that returns a collection containing the results of other expressions
Original signature : +(NSExpression*)expressionForAggregate:(NSArray*)
native declaration : NSExpression.h:88
static NSExpression expressionForConstantValue(ObjCObject obj)
          Expression that returns a constant value
Original signature : +(NSExpression*)expressionForConstantValue:(id)
native declaration : NSExpression.h:44
static NSExpression expressionForEvaluatedObject()
          Expression that returns the object being evaluated
Original signature : +(NSExpression*)expressionForEvaluatedObject
native declaration : NSExpression.h:45
static NSExpression expressionForFunction_arguments(NSString name, NSArray parameters)
          Expression that invokes one of the predefined functions.
static NSExpression expressionForFunction_selectorName_arguments(NSExpression target, NSString name, NSArray parameters)
          Expression that invokes the selector on target with parameters.
static NSExpression expressionForIntersectSet_with(NSExpression left, NSExpression right)
          return an expression that will return the intersection of the collections expressed by left and right
Original signature : +(NSExpression*)expressionForIntersectSet:(NSExpression*) with:(NSExpression*)
native declaration : NSExpression.h:90
static NSExpression expressionForKeyPath(NSString keyPath)
          Expression that invokes valueForKeyPath with keyPath
Original signature : +(NSExpression*)expressionForKeyPath:(NSString*)
native declaration : NSExpression.h:47
static NSExpression expressionForMinusSet_with(NSExpression left, NSExpression right)
          return an expression that will return the disjunction of the collections expressed by left and right
Original signature : +(NSExpression*)expressionForMinusSet:(NSExpression*) with:(NSExpression*)
native declaration : NSExpression.h:91
static NSExpression expressionForSubquery_usingIteratorVariable_predicate(NSExpression expression, NSString variable, ObjCObject predicate)
          Expression that filters a collection by storing elements in the collection in the variable variable and keeping the elements for which qualifer returns true; variable is used as a local variable, and will shadow any instances of variable in the bindings dictionary, the variable is removed or the old value replaced once evaluation completes
Original signature : +(NSExpression*)expressionForSubquery:(NSExpression*) usingIteratorVariable:(NSString*) predicate:(id)
native declaration : NSExpression.h:92
static NSExpression expressionForUnionSet_with(NSExpression left, NSExpression right)
          return an expression that will return the union of the collections expressed by left and right
Original signature : +(NSExpression*)expressionForUnionSet:(NSExpression*) with:(NSExpression*)
native declaration : NSExpression.h:89
static NSExpression expressionForVariable(NSString string)
          Expression that pulls a value from the variable bindings dictionary
Original signature : +(NSExpression*)expressionForVariable:(NSString*)
native declaration : NSExpression.h:46
abstract  int expressionType()
          accessors for individual parameters - raise if not applicable
Original signature : -(NSExpressionType)expressionType
native declaration : NSExpression.h:103
abstract  NSObject expressionValueWithObject_context(ObjCObject object, NSMutableDictionary context)
          evaluate the expression using the object and bindings- note that context is mutable here and can be used by expressions to store temporary state for one predicate evaluation
Original signature : -(id)expressionValueWithObject:(id) context:(NSMutableDictionary*)
native declaration : NSExpression.h:123
abstract  NSString function()
          Original signature : -(NSString*)function
native declaration : NSExpression.h:106
static NSExpression._class_ getNSClass()
           
abstract  NSExpression initWithExpressionType(int type)
          designated initializer
Original signature : -(id)initWithExpressionType:(NSExpressionType)
native declaration : NSExpression.h:100
abstract  NSString keyPath()
          Original signature : -(NSString*)keyPath
native declaration : NSExpression.h:105
abstract  NSExpression leftExpression()
          expression which represents the left side of a set expression
Original signature : -(NSExpression*)leftExpression
native declaration : NSExpression.h:114
static NSExpression new_()
           
abstract  NSExpression operand()
          the object on which the selector will be invoked (the result of evaluating a key path or one of the defined functions)
Original signature : -(NSExpression*)operand
native declaration : NSExpression.h:108
abstract  NSPredicate predicate()
          Original signature : -(NSPredicate*)predicate
native declaration : NSExpression.h:113
abstract  NSExpression rightExpression()
          expression which represents the right side of a set expression
Original signature : -(NSExpression*)rightExpression
native declaration : NSExpression.h:115
abstract  NSString variable()
          Original signature : -(NSString*)variable
native declaration : NSExpression.h:107
 
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.cocoa.foundation.protocols.NSCopying
copyWithZone
 
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

NSExpression

public NSExpression()
Method Detail

expressionForConstantValue

public static NSExpression expressionForConstantValue(ObjCObject obj)
Expression that returns a constant value
Original signature : +(NSExpression*)expressionForConstantValue:(id)
native declaration : NSExpression.h:44


expressionForEvaluatedObject

public static NSExpression expressionForEvaluatedObject()
Expression that returns the object being evaluated
Original signature : +(NSExpression*)expressionForEvaluatedObject
native declaration : NSExpression.h:45


expressionForVariable

public static NSExpression expressionForVariable(NSString string)
Expression that pulls a value from the variable bindings dictionary
Original signature : +(NSExpression*)expressionForVariable:(NSString*)
native declaration : NSExpression.h:46


expressionForKeyPath

public static NSExpression expressionForKeyPath(NSString keyPath)
Expression that invokes valueForKeyPath with keyPath
Original signature : +(NSExpression*)expressionForKeyPath:(NSString*)
native declaration : NSExpression.h:47


expressionForFunction_arguments

public static NSExpression expressionForFunction_arguments(NSString name,
                                                           NSArray parameters)
Expression that invokes one of the predefined functions. Will throw immediately if the selector is bad; will throw at runtime if the parameters are incorrect.
Original signature : +(NSExpression*)expressionForFunction:(NSString*) arguments:(NSArray*)
native declaration : NSExpression.h:48


expressionForAggregate

public static NSExpression expressionForAggregate(NSArray subexpressions)
Expression that returns a collection containing the results of other expressions
Original signature : +(NSExpression*)expressionForAggregate:(NSArray*)
native declaration : NSExpression.h:88


expressionForUnionSet_with

public static NSExpression expressionForUnionSet_with(NSExpression left,
                                                      NSExpression right)
return an expression that will return the union of the collections expressed by left and right
Original signature : +(NSExpression*)expressionForUnionSet:(NSExpression*) with:(NSExpression*)
native declaration : NSExpression.h:89


expressionForIntersectSet_with

public static NSExpression expressionForIntersectSet_with(NSExpression left,
                                                          NSExpression right)
return an expression that will return the intersection of the collections expressed by left and right
Original signature : +(NSExpression*)expressionForIntersectSet:(NSExpression*) with:(NSExpression*)
native declaration : NSExpression.h:90


expressionForMinusSet_with

public static NSExpression expressionForMinusSet_with(NSExpression left,
                                                      NSExpression right)
return an expression that will return the disjunction of the collections expressed by left and right
Original signature : +(NSExpression*)expressionForMinusSet:(NSExpression*) with:(NSExpression*)
native declaration : NSExpression.h:91


expressionForSubquery_usingIteratorVariable_predicate

public static NSExpression expressionForSubquery_usingIteratorVariable_predicate(NSExpression expression,
                                                                                 NSString variable,
                                                                                 ObjCObject predicate)
Expression that filters a collection by storing elements in the collection in the variable variable and keeping the elements for which qualifer returns true; variable is used as a local variable, and will shadow any instances of variable in the bindings dictionary, the variable is removed or the old value replaced once evaluation completes
Original signature : +(NSExpression*)expressionForSubquery:(NSExpression*) usingIteratorVariable:(NSString*) predicate:(id)
native declaration : NSExpression.h:92


expressionForFunction_selectorName_arguments

public static NSExpression expressionForFunction_selectorName_arguments(NSExpression target,
                                                                        NSString name,
                                                                        NSArray parameters)
Expression that invokes the selector on target with parameters. Will throw at runtime if target does not implement selector or if parameters are wrong.
Original signature : +(NSExpression*)expressionForFunction:(NSExpression*) selectorName:(NSString*) arguments:(NSArray*)
native declaration : NSExpression.h:93


initWithExpressionType

public abstract NSExpression initWithExpressionType(int type)
designated initializer
Original signature : -(id)initWithExpressionType:(NSExpressionType)
native declaration : NSExpression.h:100

Parameters:
type - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSExpressionType

createWithExpressionType

public static NSExpression createWithExpressionType(int type)
Factory method

See Also:
initWithExpressionType(int)

expressionType

public abstract int expressionType()
accessors for individual parameters - raise if not applicable
Original signature : -(NSExpressionType)expressionType
native declaration : NSExpression.h:103


constantValue

public abstract NSObject constantValue()
Original signature : -(id)constantValue
native declaration : NSExpression.h:104


keyPath

public abstract NSString keyPath()
Original signature : -(NSString*)keyPath
native declaration : NSExpression.h:105


function

public abstract NSString function()
Original signature : -(NSString*)function
native declaration : NSExpression.h:106


variable

public abstract NSString variable()
Original signature : -(NSString*)variable
native declaration : NSExpression.h:107


operand

public abstract NSExpression operand()
the object on which the selector will be invoked (the result of evaluating a key path or one of the defined functions)
Original signature : -(NSExpression*)operand
native declaration : NSExpression.h:108


arguments

public abstract NSArray arguments()
array of expressions which will be passed as parameters during invocation of the selector on the operand of a function expression
Original signature : -(NSArray*)arguments
native declaration : NSExpression.h:109


collection

public abstract NSObject collection()
Original signature : -(id)collection
native declaration : NSExpression.h:112


predicate

public abstract NSPredicate predicate()
Original signature : -(NSPredicate*)predicate
native declaration : NSExpression.h:113


leftExpression

public abstract NSExpression leftExpression()
expression which represents the left side of a set expression
Original signature : -(NSExpression*)leftExpression
native declaration : NSExpression.h:114


rightExpression

public abstract NSExpression rightExpression()
expression which represents the right side of a set expression
Original signature : -(NSExpression*)rightExpression
native declaration : NSExpression.h:115


expressionValueWithObject_context

public abstract NSObject expressionValueWithObject_context(ObjCObject object,
                                                           NSMutableDictionary context)
evaluate the expression using the object and bindings- note that context is mutable here and can be used by expressions to store temporary state for one predicate evaluation
Original signature : -(id)expressionValueWithObject:(id) context:(NSMutableDictionary*)
native declaration : NSExpression.h:123


alloc

public static NSExpression alloc()

new_

public static NSExpression new_()

getNSClass

public static NSExpression._class_ getNSClass()


Copyright © 2009. All Rights Reserved.