Package de.obqo.decycle.slicer
Class NamedPatternMatchingCategorizer
- java.lang.Object
-
- de.obqo.decycle.slicer.NamedPatternMatchingCategorizer
-
- All Implemented Interfaces:
Categorizer,java.util.function.Function<Node,java.util.Set<Node>>
public class NamedPatternMatchingCategorizer extends java.lang.Object implements Categorizer
Categorizes package nodes by matching them against ant like patterns.- * matches a node with any name not containing dots
- letters and dots match those letters and dots respectively
- ** matches any combination of letters and dots
The category of a matched node is defined by
name.Examples:
- de.**.test matches de..test, de.some.test and de.some.other.test
- de.*.test matches from the examples given above only de.some.test
-
-
Field Summary
-
Fields inherited from interface de.obqo.decycle.slicer.Categorizer
EMPTY, NONE
-
-
Constructor Summary
Constructors Constructor Description NamedPatternMatchingCategorizer(java.lang.String sliceType, java.lang.String name, java.lang.String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Node>apply(Node node)
-