@ Override public void visitClassContext ( ClassContext classContext ) { try { stack = new OpcodeStack ( ) ; localClassTypes = new HashMap <> ( ) ; fieldClassTypes = new HashMap <> ( ) ; JavaClass cls = classContext . getJavaClass ( ) ; Method staticInit = findStaticInitializer ( cls ) ; if ( staticInit != null ) { setupVisitorForClass ( cls ) ; doVisitMethod ( staticInit ) ; } super . visitClassContext ( classContext ) ; } finally { stack = null ; localClassTypes = null ; fieldClassTypes = null ; } }
implements the visitor to create the stack and local and field maps for Class arrays to be used for getting the reflection method