/packages/cocoaint/src/foundation/NSExpression.inc

https://github.com/slibre/freepascal · Pascal · 101 lines · 51 code · 18 blank · 32 comment · 0 complexity · 3b8001e53993cd40e15401200e5a3984 MD5 · raw file

  1. { Parsed from Foundation.framework NSExpression.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSEXPRESSION_PAS_T}
  4. {$define NSEXPRESSION_PAS_T}
  5. { Constants }
  6. const
  7. NSConstantValueExpressionType = 0;
  8. NSEvaluatedObjectExpressionType = 1;
  9. NSVariableExpressionType = 2;
  10. NSKeyPathExpressionType = 3;
  11. NSFunctionExpressionType = 4;
  12. NSUnionSetExpressionType = 5;
  13. NSIntersectSetExpressionType = 6;
  14. NSMinusSetExpressionType = 7;
  15. NSSubqueryExpressionType = 13;
  16. NSAggregateExpressionType = 14;
  17. NSBlockExpressionType = 19;
  18. { Types }
  19. type
  20. NSExpressionType = NSUInteger;
  21. NSExpressionTypePtr = ^NSExpressionType;
  22. {$endif}
  23. {$endif}
  24. {$ifdef RECORDS}
  25. {$ifndef NSEXPRESSION_PAS_R}
  26. {$define NSEXPRESSION_PAS_R}
  27. {$endif}
  28. {$endif}
  29. {$ifdef FUNCTIONS}
  30. {$ifndef NSEXPRESSION_PAS_F}
  31. {$define NSEXPRESSION_PAS_F}
  32. {$endif}
  33. {$endif}
  34. {$ifdef EXTERNAL_SYMBOLS}
  35. {$ifndef NSEXPRESSION_PAS_S}
  36. {$define NSEXPRESSION_PAS_S}
  37. {$endif}
  38. {$endif}
  39. {$ifdef FORWARD}
  40. NSExpression = objcclass;
  41. NSExpressionPointer = ^NSExpression;
  42. NSExpressionPtr = NSExpressionPointer;
  43. {$endif}
  44. {$ifdef CLASSES}
  45. {$ifndef NSEXPRESSION_PAS_C}
  46. {$define NSEXPRESSION_PAS_C}
  47. { NSExpression }
  48. NSExpression = objcclass external (NSObject, NSCodingProtocol, NSCopyingProtocol)
  49. private
  50. _reserved: Pointer;
  51. _expressionType: NSExpressionType;
  52. public
  53. class function expressionForConstantValue(obj: id): NSExpression; message 'expressionForConstantValue:';
  54. class function expressionForEvaluatedObject: NSExpression; message 'expressionForEvaluatedObject';
  55. class function expressionForVariable(string_: NSString): NSExpression; message 'expressionForVariable:';
  56. class function expressionForKeyPath(keyPath_: NSString): NSExpression; message 'expressionForKeyPath:';
  57. class function expressionForFunction_arguments(name: NSString; parameters: NSArray): NSExpression; message 'expressionForFunction:arguments:';
  58. class function expressionForAggregate(subexpressions: NSArray): NSExpression; message 'expressionForAggregate:';
  59. class function expressionForUnionSet_with(left: NSExpression; right: NSExpression): NSExpression; message 'expressionForUnionSet:with:';
  60. class function expressionForIntersectSet_with(left: NSExpression; right: NSExpression): NSExpression; message 'expressionForIntersectSet:with:';
  61. class function expressionForMinusSet_with(left: NSExpression; right: NSExpression): NSExpression; message 'expressionForMinusSet:with:';
  62. class function expressionForSubquery_usingIteratorVariable_predicate(expression: NSExpression; variable_: NSString; predicate_: id): NSExpression; message 'expressionForSubquery:usingIteratorVariable:predicate:';
  63. class function expressionForFunction_selectorName_arguments(target: NSExpression; name: NSString; parameters: NSArray): NSExpression; message 'expressionForFunction:selectorName:arguments:';
  64. function initWithExpressionType(type_: NSExpressionType): id; message 'initWithExpressionType:';
  65. function expressionType: NSExpressionType; message 'expressionType';
  66. function constantValue: id; message 'constantValue';
  67. function keyPath: NSString; message 'keyPath';
  68. function function_: NSString; message 'function';
  69. function variable: NSString; message 'variable';
  70. function operand: NSExpression; message 'operand';
  71. function arguments: NSArray; message 'arguments';
  72. function collection: id; message 'collection';
  73. function predicate: NSPredicate; message 'predicate';
  74. function leftExpression: NSExpression; message 'leftExpression';
  75. function rightExpression: NSExpression; message 'rightExpression';
  76. function expressionValueWithObject_context(object_: id; context: NSMutableDictionary): id; message 'expressionValueWithObject:context:';
  77. { Adopted Protocols }
  78. procedure encodeWithCoder(aCoder: NSCoder);
  79. function initWithCoder(aDecoder: NSCoder): id;
  80. function copyWithZone(zone_: NSZonePtr): id;
  81. end;
  82. {$endif}
  83. {$endif}