Package Summary Overview Summary

### class:TreeVisitor [CHANGED]
Type Parameters: `R` - the return type of this visitor's methods. Use `Void` for visitors that do not need to return results. `P` - the type of the additional parameter to this visitor's methods. Use `Void` for visitors that do not need an additional parameter. All Known Implementing Classes: `SimpleTreeVisitor`, `TreePathScanner`, `TreeScanner` public interface TreeVisitor<R,​P> `TreeVisitor` relies on preview features of the Java platform: `TreeVisitor` refers to one or more reflective preview APIs: `DefaultCaseLabelTree`, `GuardedPatternTree`, `ParenthesizedPatternTree`. Programs can only use `TreeVisitor` when preview features are enabled. Preview features may be removed in a future release, or upgraded to permanent features of the Java platform. A visitor of trees, in the style of the visitor design pattern. Classes implementing this interface are used to operate on a tree when the kind of tree is unknown at compile time. When a visitor is passed to an tree's `accept` method, the `visitXyz` method most applicable to that tree is invoked. Classes implementing this interface may or may not throw a `NullPointerException` if the additional parameter `p` is `null`; see documentation of the implementing class for details. WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the Java programming language. Therefore, visitor classes directly implementing this interface may be source incompatible with future versions of the platform. Since: 1.6
Type Parameters: `R` - the return type of this visitor's methods. Use `Void` for visitors that do not need to return results. `P` - the type of the additional parameter to this visitor's methods. Use `Void` for visitors that do not need an additional parameter. All Known Implementing Classes: `SimpleTreeVisitor`, `TreePathScanner`, `TreeScanner` public interface TreeVisitor<R,​P> A visitor of trees, in the style of the visitor design pattern. Classes implementing this interface are used to operate on a tree when the kind of tree is unknown at compile time. When a visitor is passed to an tree's `accept` method, the `visitXyz` method most applicable to that tree is invoked. Classes implementing this interface may or may not throw a `NullPointerException` if the additional parameter `p` is `null`; see documentation of the implementing class for details. WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the Java programming language. Therefore, visitor classes directly implementing this interface may be source incompatible with future versions of the platform. Since: 1.6 | Type Parameters: `R` - the return type of this visitor's methods. Use `Void` for visitors that do not need to return results. `P` - the type of the additional parameter to this visitor's methods. Use `Void` for visitors that do not need an additional parameter. All Known Implementing Classes: `SimpleTreeVisitor`, `TreePathScanner`, `TreeScanner` public interface TreeVisitor<R,​P> `TreeVisitor` relies on preview features of the Java platform: `TreeVisitor` refers to one or more reflective preview APIs: `DefaultCaseLabelTree`, `GuardedPatternTree`, `ParenthesizedPatternTree`. Programs can only use `TreeVisitor` when preview features are enabled. Preview features may be removed in a future release, or upgraded to permanent features of the Java platform. A visitor of trees, in the style of the visitor design pattern. Classes implementing this interface are used to operate on a tree when the kind of tree is unknown at compile time. When a visitor is passed to an tree's `accept` method, the `visitXyz` method most applicable to that tree is invoked. Classes implementing this interface may or may not throw a `NullPointerException` if the additional parameter `p` is `null`; see documentation of the implementing class for details. WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the Java programming language. Therefore, visitor classes directly implementing this interface may be source incompatible with future versions of the platform. Since: 1.6