@ Override public void visitClassContext ( ClassContext classContext ) { try { stack = new OpcodeStack ( ) ; nameOfThisClass = SignatureUtils . getNonAnonymousPortion ( classContext . getJavaClass ( ) . getClassName ( ) ) ; formatterLoggers = new HashSet <> ( ) ; super . visitClassContext ( classContext ) ; } finally { formatterLoggers = null ; stack = null ; } }
implements the visitor to discover what the class name is if it is a normal class or the owning class if the class is an anonymous class .