- toString
Get the original pattern text
- getDefaultPriority
Determine the default priority to use if this pattern appears as a match pattern
for a template with
- getFingerprint
Determine the name fingerprint of nodes to which this pattern applies. Used for
optimisation.
- matches
Determine whether this Pattern matches the given Node. This is the main external
interface for match
- setOriginalText
Set the original text of the pattern for use in diagnostics
- simplify
Simplify the pattern by applying any context-independent optimisations. Default
implementation does
- allocateSlots
Allocate slots to any variables used within the pattern
- getDependencies
Get the dependencies of the pattern. The only possible dependency for a pattern
is on local variable
- make
Static method to make a Pattern by parsing a String.
- getLineNumber
Get the line number on which the pattern was defined
- getNodeKind
Determine the types of nodes to which this pattern applies. Used for
optimisation. For patterns that
- getNodeTest
Get a NodeTest that all the nodes matching this pattern must satisfy