public class NSExpression extends NSObject implements NSSecureCoding, NSCopying
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSExpression.Block_expressionBlock_ret |
static interface |
NSExpression.Block_expressionForBlockArguments |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSExpression(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static NSExpression |
alloc() |
static NSExpression |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
void |
allowEvaluation()
Force an expression which was securely decoded to allow evaluation
|
NSArray<? extends NSExpression> |
arguments()
array of expressions which will be passed as parameters during invocation of the selector on the operand of a function expression
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
collection() |
java.lang.Object |
constantValue() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
NSExpression.Block_expressionBlock_ret |
expressionBlock() |
static NSExpression |
expressionForAggregate(NSArray<? extends NSExpression> subexpressions)
Expression that returns a collection containing the results of other expressions
|
static NSExpression |
expressionForAnyKey() |
static NSExpression |
expressionForBlockArguments(NSExpression.Block_expressionForBlockArguments block,
NSArray<? extends NSExpression> arguments)
Expression that invokes the block with the parameters; note that block expressions are not encodable or representable as parseable strings.
|
static NSExpression |
expressionForConditionalTrueExpressionFalseExpression(NSPredicate predicate,
NSExpression trueExpression,
NSExpression falseExpression)
Expression that will return the result of trueExpression or falseExpression depending on the value of predicate
|
static NSExpression |
expressionForConstantValue(java.lang.Object obj)
Expression that returns a constant value
|
static NSExpression |
expressionForEvaluatedObject()
Expression that returns the object being evaluated
|
static NSExpression |
expressionForFunctionArguments(java.lang.String name,
NSArray<?> parameters)
Expression that invokes one of the predefined functions.
|
static NSExpression |
expressionForFunctionSelectorNameArguments(NSExpression target,
java.lang.String name,
NSArray<?> parameters)
Expression that invokes the selector on target with parameters.
|
static NSExpression |
expressionForIntersectSetWith(NSExpression left,
NSExpression right)
return an expression that will return the intersection of the collections expressed by left and right
|
static NSExpression |
expressionForKeyPath(java.lang.String keyPath)
Expression that invokes valueForKeyPath with keyPath
|
static NSExpression |
expressionForMinusSetWith(NSExpression left,
NSExpression right)
return an expression that will return the disjunction of the collections expressed by left and right
|
static NSExpression |
expressionForSubqueryUsingIteratorVariablePredicate(NSExpression expression,
java.lang.String variable,
NSPredicate 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
|
static NSExpression |
expressionForUnionSetWith(NSExpression left,
NSExpression right)
return an expression that will return the union of the collections expressed by left and right
|
static NSExpression |
expressionForVariable(java.lang.String string)
Expression that pulls a value from the variable bindings dictionary
|
long |
expressionType()
accessors for individual parameters - raise if not applicable
|
java.lang.Object |
expressionValueWithObjectContext(java.lang.Object 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
|
static NSExpression |
expressionWithFormat(java.lang.String expressionFormat,
java.lang.Object... varargs) |
static NSExpression |
expressionWithFormatArgumentArray(java.lang.String expressionFormat,
NSArray<?> arguments) |
static NSExpression |
expressionWithFormatArguments(java.lang.String expressionFormat,
org.moe.natj.general.ptr.BytePtr argList) |
NSExpression |
falseExpression()
expression which will be evaluated if a conditional expression's predicate evaluates to false
|
java.lang.String |
function() |
static long |
hash_static() |
NSExpression |
init() |
NSExpression |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSExpression |
initWithExpressionType(long type) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
java.lang.String |
keyPath() |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSExpression |
leftExpression()
expression which represents the left side of a set expression
|
static NSExpression |
new_objc() |
NSExpression |
operand()
the object on which the selector will be invoked (the result of evaluating a key path or one of the defined functions)
|
NSPredicate |
predicate() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSExpression |
rightExpression()
expression which represents the right side of a set expression
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSExpression |
trueExpression()
expression which will be evaluated if a conditional expression's predicate evaluates to true
|
java.lang.String |
variable() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSExpression alloc()
public static NSExpression allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static NSExpression expressionForAggregate(NSArray<? extends NSExpression> subexpressions)
public static NSExpression expressionForAnyKey()
public static NSExpression expressionForBlockArguments(NSExpression.Block_expressionForBlockArguments block, NSArray<? extends NSExpression> arguments)
public static NSExpression expressionForConditionalTrueExpressionFalseExpression(NSPredicate predicate, NSExpression trueExpression, NSExpression falseExpression)
public static NSExpression expressionForConstantValue(java.lang.Object obj)
public static NSExpression expressionForEvaluatedObject()
public static NSExpression expressionForFunctionArguments(java.lang.String name, NSArray<?> parameters)
public static NSExpression expressionForFunctionSelectorNameArguments(NSExpression target, java.lang.String name, NSArray<?> parameters)
public static NSExpression expressionForIntersectSetWith(NSExpression left, NSExpression right)
public static NSExpression expressionForKeyPath(java.lang.String keyPath)
public static NSExpression expressionForMinusSetWith(NSExpression left, NSExpression right)
public static NSExpression expressionForSubqueryUsingIteratorVariablePredicate(NSExpression expression, java.lang.String variable, NSPredicate predicate)
public static NSExpression expressionForUnionSetWith(NSExpression left, NSExpression right)
public static NSExpression expressionForVariable(java.lang.String string)
public static NSExpression expressionWithFormat(java.lang.String expressionFormat, java.lang.Object... varargs)
public static NSExpression expressionWithFormatArgumentArray(java.lang.String expressionFormat, NSArray<?> arguments)
public static NSExpression expressionWithFormatArguments(java.lang.String expressionFormat, org.moe.natj.general.ptr.BytePtr argList)
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSExpression new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public void allowEvaluation()
public NSArray<? extends NSExpression> arguments()
public java.lang.Object collection()
public java.lang.Object constantValue()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic NSExpression.Block_expressionBlock_ret expressionBlock()
public long expressionType()
public java.lang.Object expressionValueWithObjectContext(java.lang.Object object,
NSMutableDictionary<?,?> context)
public NSExpression falseExpression()
public java.lang.String function()
public NSExpression init()
public NSExpression initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSExpression initWithExpressionType(long type)
public java.lang.String keyPath()
public NSExpression leftExpression()
public NSExpression operand()
public NSPredicate predicate()
public NSExpression rightExpression()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic NSExpression trueExpression()
public java.lang.String variable()