* @return the generated element
*/
private Element processClass(DirectClassFile cf, Element root, Map<String, ReferenceKind> referencedTypes)
{
Element classElement= new Element("class", NS_XMLVM);
CstType type= cf.getThisClass();
PackagePlusClassName parsedClassName= parseClassName(type.getClassType().getClassName());
addReference(referencedTypes, parsedClassName.toString(), ReferenceKind.SELF);
classElement.setAttribute("name", parsedClassName.className);
classElement.setAttribute("package", parsedClassName.packageName);
String superClassName= "";
// if we are an innerclass add the enclosingMethod
AttEnclosingMethod enclosingMethodAnnotation= (AttEnclosingMethod) cf.getAttributes().findFirst(AttEnclosingMethod.ATTRIBUTE_NAME);
if (enclosingMethodAnnotation != null)
{
CstType enclosingClass= enclosingMethodAnnotation.getEnclosingClass();
CstNat enclosingMethod= enclosingMethodAnnotation.getMethod();
if (enclosingClass != null)
{
addReference(referencedTypes, enclosingClass.toHuman(), ReferenceKind.USAGE);
classElement.setAttribute("enclosingClass", enclosingClass.toHuman());
}
if (enclosingMethod != null)
{
classElement.setAttribute("enclosingMethod", enclosingMethod.toHuman());
}