Package de.obqo.decycle.slicer
Class PatternMatchingNodeFilter
- java.lang.Object
-
- de.obqo.decycle.slicer.PatternMatchingNodeFilter
-
- All Implemented Interfaces:
NodeFilter,java.util.function.Predicate<Node>
public class PatternMatchingNodeFilter extends java.lang.Object implements NodeFilter
NodeFilterthat filters aNodebased on its name.A
Nodepasses this filter it its name matches a given ant-like pattern.-
*matches a single (simple) class name or one part of package name (i.e. everything that is not a dot '.').
For examplejava.util.*will match all class names in thejava.utilpackage, but not in any subpackages (likejava.util.regex).java.util.*.*will match all class names in all subpackages ofjava.util, but not the classes injava.util -
**matches any string including dots.
For examplejava.util.**will match all class names in thejava.utilpackage and its subpackages. - The pattern may contain parentheses and the pipe symbol '|' to create more complex patterns.
-
-
Field Summary
-
Fields inherited from interface de.obqo.decycle.model.NodeFilter
ALL
-
-
Constructor Summary
Constructors Constructor Description PatternMatchingNodeFilter(java.lang.String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(Node node)
-