W3cubDocs

/Groovy 3.0

[Java] Interface GroovyClassVisitor

public interface GroovyClassVisitor

A special visitor for working with the structure of a class. In general, your will want to use the Abstract class based on this class ClassCodeVisitorSupport.

See Also:
ClassNode
ClassCodeVisitorSupport

Methods Summary

Methods
Type Params Return Type Name and description
public void visitClass(ClassNode node)
Visit a ClassNode.
public void visitConstructor(ConstructorNode node)
Visit a ConstructorNode.
public void visitField(FieldNode node)
Visit a FieldNode.
public void visitMethod(MethodNode node)
Visit a MethodNode.
public void visitProperty(PropertyNode node)
Visit a PropertyNode.

Method Detail

public void visitClass(ClassNode node)

Visit a ClassNode.

public void visitConstructor(ConstructorNode node)

Visit a ConstructorNode.

public void visitField(FieldNode node)

Visit a FieldNode.

public void visitMethod(MethodNode node)

Visit a MethodNode.

public void visitProperty(PropertyNode node)

Visit a PropertyNode.

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/GroovyClassVisitor.html