Class NSExpression

    • Constructor Detail

      • NSExpression

        protected NSExpression​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • expressionForAggregate

        public static NSExpression expressionForAggregate​(NSArray<? extends NSExpression> subexpressions)
        Expression that returns a collection containing the results of other expressions
      • expressionForAnyKey

        public static NSExpression expressionForAnyKey()
      • expressionForConditionalTrueExpressionFalseExpression

        public 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
      • expressionForConstantValue

        public static NSExpression expressionForConstantValue​(java.lang.Object obj)
        Expression that returns a constant value
      • expressionForEvaluatedObject

        public static NSExpression expressionForEvaluatedObject()
        Expression that returns the object being evaluated
      • expressionForFunctionArguments

        public static NSExpression expressionForFunctionArguments​(java.lang.String 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.
      • expressionForFunctionSelectorNameArguments

        public static NSExpression expressionForFunctionSelectorNameArguments​(NSExpression target,
                                                                              java.lang.String 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.
      • expressionForIntersectSetWith

        public static NSExpression expressionForIntersectSetWith​(NSExpression left,
                                                                 NSExpression right)
        return an expression that will return the intersection of the collections expressed by left and right
      • expressionForKeyPath

        public static NSExpression expressionForKeyPath​(java.lang.String keyPath)
        Expression that invokes valueForKeyPath with keyPath
      • expressionForMinusSetWith

        public static NSExpression expressionForMinusSetWith​(NSExpression left,
                                                             NSExpression right)
        return an expression that will return the disjunction of the collections expressed by left and right
      • expressionForSubqueryUsingIteratorVariablePredicate

        public 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
      • expressionForUnionSetWith

        public static NSExpression expressionForUnionSetWith​(NSExpression left,
                                                             NSExpression right)
        return an expression that will return the union of the collections expressed by left and right
      • expressionForVariable

        public static NSExpression expressionForVariable​(java.lang.String string)
        Expression that pulls a value from the variable bindings dictionary
      • expressionWithFormat

        public static NSExpression expressionWithFormat​(java.lang.String expressionFormat,
                                                        java.lang.Object... varargs)
      • expressionWithFormatArgumentArray

        public static NSExpression expressionWithFormatArgumentArray​(java.lang.String expressionFormat,
                                                                     NSArray<?> arguments)
      • expressionWithFormatArguments

        public static NSExpression expressionWithFormatArguments​(java.lang.String expressionFormat,
                                                                 org.moe.natj.general.ptr.BytePtr argList)
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • allowEvaluation

        public void allowEvaluation()
        Force an expression which was securely decoded to allow evaluation
      • arguments

        public 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
      • collection

        public java.lang.Object collection()
      • constantValue

        public java.lang.Object constantValue()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • expressionType

        public long expressionType()
        accessors for individual parameters - raise if not applicable
      • expressionValueWithObjectContext

        public 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
      • falseExpression

        public NSExpression falseExpression()
        expression which will be evaluated if a conditional expression's predicate evaluates to false
      • function

        public java.lang.String function()
      • initWithExpressionType

        public NSExpression initWithExpressionType​(long type)
      • keyPath

        public java.lang.String keyPath()
      • leftExpression

        public NSExpression leftExpression()
        expression which represents the left side of a set expression
      • operand

        public NSExpression operand()
        the object on which the selector will be invoked (the result of evaluating a key path or one of the defined functions)
      • rightExpression

        public NSExpression rightExpression()
        expression which represents the right side of a set expression
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • trueExpression

        public NSExpression trueExpression()
        expression which will be evaluated if a conditional expression's predicate evaluates to true
      • variable

        public java.lang.String variable()