Package | Description |
---|---|
org.macroing.cit.java.util.node |
Provides classes and interfaces to represent nodes in graph structures and ways to filter, traverse and transform them.
|
Modifier and Type | Method and Description |
---|---|
static NodeFilter |
NodeFilter.and(NodeFilter... nodeFilters)
|
static NodeFilter |
NodeFilter.any()
Returns a
NodeFilter that accepts any Node . |
static NodeFilter |
NodeFilter.or(NodeFilter... nodeFilters)
Returns a
NodeFilter that accepts all Node s that are accepted by at least one of the aggregated NodeFilter s. |
static NodeFilter |
NodeFilter.regex(java.lang.String regex)
Returns a
NodeFilter that accepts all Node s that have a toString() method that matches the given Regex. |
Modifier and Type | Method and Description |
---|---|
static NodeFilter |
NodeFilter.and(NodeFilter... nodeFilters)
|
static java.util.List<Node> |
NodeFilter.filter(Node node,
NodeFilter nodeFilter)
|
static <T extends Node> |
NodeFilter.filter(Node node,
NodeFilter nodeFilter,
java.lang.Class<T> clazz)
Returns a
List with the Node s that satisfies the criterion specified by nodeFilter , but only if they are assignment compatible to clazz . |
static NodeFilter |
NodeFilter.or(NodeFilter... nodeFilters)
Returns a
NodeFilter that accepts all Node s that are accepted by at least one of the aggregated NodeFilter s. |