Class JavaParserDecoratedVisitor

  • All Implemented Interfaces:
    JavaParserVisitor

    @Deprecated
    public class JavaParserDecoratedVisitor
    extends Object
    implements JavaParserVisitor
    Deprecated.
    Visitor decorators are deprecated because they lead to fragile code.
    External wrapper for a visitor decorator. This one drives the AST visit, delegating to the base controlless visitor given in the constructor. Add decorators using the decorateWith(JavaParserVisitorDecorator).

    Important! This modified decorator pattern compels you to use the data object as the accumulator for your result! The visit methods or your decorators and base visitors must only perform side effects on this object, their return values will be ignored.

    Since:
    6.0.0
    Author:
    Clément Fournier