Uses of Enum
com.github.javaparser.ast.Node.TreeTraversal
Packages that use Node.TreeTraversal
-
Uses of Node.TreeTraversal in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return Node.TreeTraversalModifier and TypeMethodDescriptionstatic Node.TreeTraversal
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.TreeTraversalModifier and TypeMethodDescriptionNode.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".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".