*/
@Override
public void visit(Class<?> clazz)
{
ClassContextImpl context = new ClassContextImpl(builder, clazz);
context.put(clazz, payload);
if (log.isTraceEnabled())
{
log.trace("Scanning class: {}", clazz.getName());
}
// first process the class
visit(clazz, context);
// only process fields and classes if a rule building has been started
if (context.hasRuleBuildingStarted()) {
// walk up the inheritance hierarchy
Class<?> currentType = clazz;
while (currentType != null) {