01_user_documentation:07_rgg_xl:02_xl:08_object:02_pattern
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:07_rgg_xl:02_xl:08_object:02_pattern [2025/08/29 10:49] – gaetan | 01_user_documentation:07_rgg_xl:02_xl:08_object:02_pattern [2025/09/02 18:26] (current) – gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Pattern ====== | ====== Pattern ====== | ||
| - | Patterns are declared from a class that extends [[https:// | + | Patterns are declared from a class that extends [[https:// |
| ===== ===== | ===== ===== | ||
| - | The minimal format to declare a pattern as java object is: | ||
| - | <code java> | + | {{namespace>: |
| - | class X extends Node { | + | |
| - | static class Pattern extends UserDefinedPattern { | + | |
| - | private static void signature(@In @Out X node) {} | + | |
| - | public Matcher createMatcher(Graph graph, XBitSet bound, | + | |
| - | | + | |
| - | } | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | Additionally, | + | |
| - | <code java> | + | |
| - | // declaration | + | |
| - | class xyzPath(@In Node a, @Out Node b) ( | + | |
| - | a -x-> -y-> -z-> b | + | |
| - | ) | + | |
| - | + | ||
| - | //usage | + | |
| - | void rule() [ Node -xyzPath-> | + | |
| - | </ | + | |
01_user_documentation/07_rgg_xl/02_xl/08_object/02_pattern.1756457363.txt.gz · Last modified: 2025/08/29 10:49 by gaetan
