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.
|
org.macroing.cit.java.util.node.tree |
Provides classes and interfaces to represent tree structures and ways to filter, traverse and transform them.
|
Modifier and Type | Interface and Description |
---|---|
interface |
NodeTransformer<T extends Node,U extends Node>
A means to transform a
Node instance. |
interface |
NodeTransformer<T extends Node,U extends Node>
A means to transform a
Node instance. |
Modifier and Type | Method and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Node> |
NodeFilter.filter(Node node)
Returns a
List with all Node s. |
static java.util.List<Node> |
NodeFilter.filter(Node node,
NodeFilter nodeFilter)
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Node> |
NodeFilter.filter(Node node)
Returns a
List with all Node s. |
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 . |
boolean |
NodeFilter.isAccepted(Node node)
Returns
true if, and only if, node is accepted, false otherwise. |
void |
NodeVisitor.visit(Node node)
Called by a concrete
Node implementation. |
boolean |
NodeHierarchicalVisitor.visitEnter(Node node)
Called by a concrete
Node implementation. |
boolean |
AbstractReflectiveNodeHierarchicalVisitor.visitEnter(Node node)
Called by a concrete
Node implementation. |
boolean |
NodeHierarchicalVisitor.visitLeave(Node node)
Called by a concrete
Node implementation. |
boolean |
AbstractReflectiveNodeHierarchicalVisitor.visitLeave(Node node)
Called by a concrete
Node implementation. |
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTree.AbstractBuilder<T extends Node>
An abstract
Builder implementation that implements most methods, so you don't have to do it yourself. |
static interface |
Tree.Builder<T extends Node>
A
Builder allows you to build immutable Tree s. |
Modifier and Type | Interface and Description |
---|---|
interface |
Tree
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTree
An abstract
Tree implementation that enhances AbstractTree.accept(NodeHierarchicalVisitor) so that it accepts multiple child Node s. |
class |
SimpleTree
A
SimpleTree is a simple implementation of the Tree interface. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
Tree.getNodes()
Returns the
Node s currently added to this Tree . |
java.util.List<Node> |
AbstractTree.getNodes()
Returns the
Node s currently added to this AbstractTree . |
Modifier and Type | Method and Description |
---|---|
Tree.Builder<T> |
Tree.Builder.addNode(Node node)
Adds
node to this Builder instance. |
AbstractTree.AbstractBuilder<T> |
AbstractTree.AbstractBuilder.addNode(Node node)
Adds
node to this AbstractBuilder instance. |
Tree.Builder<T> |
Tree.Builder.removeNode(Node node)
Removes
node from this Builder instance. |
AbstractTree.AbstractBuilder<T> |
AbstractTree.AbstractBuilder.removeNode(Node node)
Removes
node from this AbstractBuilder instance. |