Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Instance Pattern

dhemery edited this page Apr 9, 2012 · 9 revisions

Instance Pattern

Structure. An instance pattern is a sequence of simple patterns with no intervening whitespace.

Matching. A view matches an instance pattern if it matches every simple pattern in the instance pattern.

The at most one class pattern rule. An instance pattern may include no more than one class pattern.

The class first rule. If an instance pattern includes a class pattern, the class pattern must appear first in the instance pattern.

Combining instance patterns. Instance patterns may be combined via combinators to form relationship patterns.

Subjects. The subjects of an instance pattern are the views that match the pattern.

Clone this wiki locally