2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

public final class

ClassVisitor

extends Object
java.lang.Object
   ↳ org.apache.onami.test.reflection.ClassVisitor

Class Overview

Class visitor engine.

Visit the input class and all super classes and invokes handler to register annotations.

Summary

Public Constructors
ClassVisitor()
Public Methods
<A extends Annotation> ClassVisitor registerHandler(Class<A> annotationType, AnnotationHandler<A, ? extends AnnotatedElement> handler)
Registers an annotation handler.
<T> void visit(Class<? super T> type)
Visits all fields, methods and super classes of the input class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClassVisitor ()

Public Methods

public ClassVisitor registerHandler (Class<A> annotationType, AnnotationHandler<A, ? extends AnnotatedElement> handler)

Registers an annotation handler.

Parameters
annotationType the annotation class to handle
handler the related annotation handler
Returns
  • the current ClassVisitor instance

public void visit (Class<? super T> type)

Visits all fields, methods and super classes of the input class.

Parameters
type The type
Throws
HandleException when an error occurs.