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:
    TreeVisitor<R,P>

    public class SimpleTreeVisitorES6<R,P>
    extends SimpleTreeVisitorES5_1<R,P>
    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.