Package | Description |
---|---|
com.github.javaparser.ast |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
<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".
|
Copyright © 2007–2019. All rights reserved.