in src/main/java/com/twitter/nodes/NodeDotGraphGenerator.java [315:332]
private static NodeType extractType(Node node) {
if (node instanceof ValueNode) {
return NodeType.VALUE;
} else if (node instanceof PredicateSwitchNode) {
return NodeType.PREDICATE;
} else if (node instanceof TransformNode
|| node instanceof PredicateNode) {
return NodeType.TRANSFORM;
} else if (node instanceof AndNode
|| node instanceof OrNode
|| node instanceof NotNode) {
return NodeType.BOOLEAN;
} else if (node instanceof ServiceNode) {
return NodeType.SERVICE;
} else {
return NodeType.NORMAL;
}
}