1 26 27 package org.objectweb.util.explorer.plugin.java.reflect; 28 29 37 public class ClassUtil 38 extends MemberUtil { 39 40 46 protected Class class_; 47 48 54 public ClassUtil(Class theClass){ 55 super(); 56 class_ = theClass; 57 } 58 59 public ClassUtil(Class theClass, ClassVisibilityConfig config) { 60 super(config); 61 class_ = theClass; 62 } 63 64 70 76 79 public String toHTML(){ 80 String visibility = getVisibility(class_.getModifiers()); 81 StringBuffer name = new StringBuffer ((visibility!=null?"<i>"+visibility+"</i>" + " ":"") + "<b>" + class_.getName().substring(class_.getName().lastIndexOf('$') + 1) + "</b>"); 82 return name.toString(); 83 } 84 85 } 86 87 | Popular Tags |