Uses of Class
com.github.javaparser.ast.Node.TreeTraversal
-
Packages that use Node.TreeTraversal Package Description com.github.javaparser.ast -
-
Uses of Node.TreeTraversal in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return Node.TreeTraversal Modifier and Type Method Description static Node.TreeTraversal
Node.TreeTraversal. valueOf(String name)
Returns the enum constant of this type with the specified name.static Node.TreeTraversal[]
Node.TreeTraversal. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.github.javaparser.ast with parameters of type Node.TreeTraversal Modifier and Type Method Description <T extends Node>
List<T>Node. findAll(Class<T> nodeType, Node.TreeTraversal traversal)
Walks the AST with specified traversal order, returning all nodes of type "nodeType".<T> Optional<T>
Node. findFirst(Node.TreeTraversal traversal, Function<Node,Optional<T>> consumer)
Walks the AST, applying the function for every node, with traversal algorithm "traversal".Stream<Node>
Node. stream(Node.TreeTraversal traversal)
Make a stream of nodes using traversal algorithm "traversal".void
Node. walk(Node.TreeTraversal traversal, Consumer<Node> consumer)
Walks the AST, calling the consumer for every node, with traversal algorithm "traversal".
-