379 {
380
381 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
382 ((ObjectInterface *) clazz->interface)->description =
description;
383 ((ObjectInterface *) clazz->interface)->hash =
hash;
384 ((ObjectInterface *) clazz->interface)->isEqual =
isEqual;
385
387 ((SelectorInterface *) clazz->interface)->compareTo =
compareTo;
388 ((SelectorInterface *) clazz->interface)->initWithRule =
initWithRule;
390 ((SelectorInterface *) clazz->interface)->parse =
parse;
391 ((SelectorInterface *) clazz->interface)->select =
_select;
392}
static Set * _select(const Selector *self, View *view)
static String * description(const Object *self)
static _Bool isEqual(const Object *self, const Object *other)
static int hash(const Object *self)
Selector * initWithRule(Selector *self, const char *rule)
Initializes this Selector with the given rule.
Order compareTo(const Selector *self, const Selector *other)
Compares this Selector to other, ordering by specificity.
void enumerateSelection(const Selector *self, View *view, ViewEnumerator enumerator, ident data)
Selects from view and applies the given ViewEnumerator to all matched Views.
Array * parse(const char *rules)
Parses the null-terminated C string of Selector rules into an Array of Selectors.