Class ContextualClassCodeVisitor

  • All Implemented Interfaces:
    GroovyClassVisitor, GroovyCodeVisitor, ErrorCollecting

    public abstract class ContextualClassCodeVisitor
    extends ClassCodeVisitorSupport
    A class code visitor which is capable of remembering the context of the current visit. This makes it easier for subclasses to perform context-dependent transformations, where for example it is necessary to check the parent nodes of an AST node before performing some operations.