Skip to content

Token matchers

Dima Chechetkin edited this page Sep 11, 2019 · 1 revision

#Token Matchers Currently Linker-parser supports only two types of token matchers: TerminalMatcher and PatternMatcher. There is a possibility that NumberMatcher token will be added later.

TerminalMatcher

This matcher is used on static final String fields to match buffer contents against a predefined string taken from the value of that field.

PatternMatcher

This matcher is used on non-static String fields to match buffer contents against rules specified by @CapturePattern annotation on that field.

NumberMatcher

A planned matcher to support matching fields of types that extend Java's Number type. Not implemented yet.

Clone this wiki locally