private void addClass ( URLClassLoader loader , JarEntry jarEntry , XMLStreamWriter writer , boolean mapClassMethods ) throws ClassNotFoundException , XMLStreamException , IntrospectionException { String className = jarEntry . getName ( ) . replaceAll ( "\\.class" , "" ) . replaceAll ( "/" , "." ) ; writer . writeStartElement ( "class" ) ; writer . writeAttribute ( "name" , className ) ; Set < Method > methodSet = new HashSet < Method > ( ) ; Class < ? > aClass = loader . loadClass ( className ) ; processProperties ( writer , methodSet , aClass ) ; if ( mapClassMethods && ! Modifier . isInterface ( aClass . getModifiers ( ) ) ) { processClassMethods ( writer , aClass , methodSet ) ; } writer . writeEndElement ( ) ; }
Add an individual class to the map file .