Package | Description |
---|---|
org.netbeans.api.java.source.matching |
Modifier and Type | Method and Description |
---|---|
static Matcher |
Matcher.create(CompilationInfo info)
Create the Matcher for the given
CompilationInfo . |
Matcher |
Matcher.setCancel(AtomicBoolean cancel)
Make the matching cancelable by setting
true to the given AtomicBoolean . |
Matcher |
Matcher.setKeepSyntheticTrees()
When set, trees (like implicit receivers) that are not in the source code,
but have variable in the pattern, will get a synthetic entry in variables.
|
Matcher |
Matcher.setPresetVariable(Map<String,TreePath> variables,
Map<String,Collection<? extends TreePath>> multiVariables,
Map<String,String> variables2Names)
Preset values of free variables in the pattern (see
Pattern.createPatternWithFreeVariables(com.sun.source.util.TreePath, java.util.Map) ). |
Matcher |
Matcher.setSearchRoot(TreePath root)
Search for the occurrences only under the given tree.
|
Matcher |
Matcher.setTreeTopSearch()
The matcher should perform the tree-top search: the occurrence of the pattern must correspond directly
to the search root.
|
Matcher |
Matcher.setUntypedMatching()
The matching should ignore type attributes on the trees.
|