Package org.robovm.apple.foundation
Class NSExpression
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSExpression
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
NSFetchRequestExpression
public class NSExpression extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 3.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSExpression.NSExpressionPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSExpression()
protected
NSExpression(long handle)
Deprecated.NSExpression(java.lang.String expressionFormat, NSArray<?> arguments)
NSExpression(NSCoder coder)
NSExpression(NSExpressionType type)
protected
NSExpression(NSObject.Handle h, long handle)
protected
NSExpression(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSExpression
public NSExpression()
-
NSExpression
@Deprecated protected NSExpression(long handle)
Deprecated.
-
NSExpression
protected NSExpression(NSObject.Handle h, long handle)
-
NSExpression
protected NSExpression(NSObject.SkipInit skipInit)
-
NSExpression
public NSExpression(NSExpressionType type)
-
NSExpression
public NSExpression(NSCoder coder)
-
NSExpression
public NSExpression(java.lang.String expressionFormat, NSArray<?> arguments)
- Since:
- Available in iOS 4.0 and later.
-
-
Method Detail
-
getExpressionType
public NSExpressionType getExpressionType()
-
getConstantValue
public NSObject getConstantValue()
-
getKeyPath
public java.lang.String getKeyPath()
-
getFunction
public java.lang.String getFunction()
-
getVariable
public java.lang.String getVariable()
-
getOperand
public NSExpression getOperand()
-
getArguments
public NSArray<NSExpression> getArguments()
-
getCollection
public NSObject getCollection()
- Since:
- Available in iOS 3.0 and later.
-
getPredicate
public NSPredicate getPredicate()
- Since:
- Available in iOS 3.0 and later.
-
getLeftExpression
public NSExpression getLeftExpression()
- Since:
- Available in iOS 3.0 and later.
-
getRightExpression
public NSExpression getRightExpression()
- Since:
- Available in iOS 3.0 and later.
-
getTrueExpression
public NSExpression getTrueExpression()
- Since:
- Available in iOS 9.0 and later.
-
getFalseExpression
public NSExpression getFalseExpression()
- Since:
- Available in iOS 9.0 and later.
-
getExpressionBlock
public org.robovm.objc.block.Block3<NSObject,NSArray<NSExpression>,NSMutableDictionary<?,?>,NSObject> getExpressionBlock()
- Since:
- Available in iOS 4.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
init
protected long init(NSExpressionType type)
-
init
protected long init(NSCoder coder)
-
evaluate
public NSObject evaluate(NSObject object, NSMutableDictionary<?,?> context)
-
allowEvaluation
public void allowEvaluation()
- Since:
- Available in iOS 7.0 and later.
-
create
protected static long create(java.lang.String expressionFormat, NSArray<?> arguments)
- Since:
- Available in iOS 4.0 and later.
-
createForConstantValue
public static NSExpression createForConstantValue(NSObject obj)
-
createForEvaluatedObject
public static NSExpression createForEvaluatedObject()
-
createForVariable
public static NSExpression createForVariable(java.lang.String string)
-
createForKeyPath
public static NSExpression createForKeyPath(java.lang.String keyPath)
-
createForFunction
public static NSExpression createForFunction(java.lang.String name, NSArray<?> parameters)
-
createForAggregate
public static NSExpression createForAggregate(NSArray<NSExpression> subexpressions)
- Since:
- Available in iOS 3.0 and later.
-
createForUnionSet
public static NSExpression createForUnionSet(NSExpression left, NSExpression right)
- Since:
- Available in iOS 3.0 and later.
-
createForIntersectSet
public static NSExpression createForIntersectSet(NSExpression left, NSExpression right)
- Since:
- Available in iOS 3.0 and later.
-
createForMinusSet
public static NSExpression createForMinusSet(NSExpression left, NSExpression right)
- Since:
- Available in iOS 3.0 and later.
-
createForSubquery
public static NSExpression createForSubquery(NSExpression expression, java.lang.String variable, NSPredicate predicate)
- Since:
- Available in iOS 3.0 and later.
-
createForFunction
public static NSExpression createForFunction(NSExpression target, java.lang.String name, NSArray<?> parameters)
- Since:
- Available in iOS 3.0 and later.
-
createForAnyKey
public static NSExpression createForAnyKey()
- Since:
- Available in iOS 7.0 and later.
-
createForBlock
public static NSExpression createForBlock(org.robovm.objc.block.Block3<NSObject,NSArray<NSExpression>,NSMutableDictionary<?,?>,NSObject> block, NSArray<NSExpression> arguments)
- Since:
- Available in iOS 4.0 and later.
-
createForConditional
public static NSExpression createForConditional(NSPredicate predicate, NSExpression trueExpression, NSExpression falseExpression)
- Since:
- Available in iOS 9.0 and later.
-
-