Class SimpleTreeVisitorES6<R,​P>

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 Implemented Interfaces:

public class SimpleTreeVisitorES6<R,​P>
extends SimpleTreeVisitorES5_1<R,​P>
Deprecated, for removal: This API element is subject to removal in a future version.
Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.
A simple implementation of the TreeVisitor for ECMAScript edition 6.

The visit methods corresponding to ES 6 language constructs walk the "components" of the given tree by calling accept method passing the current visitor and the additional parameter.

For constructs introduced in later versions, visitUnknown is called instead which throws UnknownTreeException.

Methods in this class may be overridden subject to their general contract. Note that annotating methods in concrete subclasses with @Override will help ensure that methods are overridden as intended.