1 22 package org.jboss.iiop.rmi; 23 24 25 34 public class ClassAnalysis 35 extends AbstractAnalysis 36 { 37 39 41 43 67 68 static private String javaNameOfClass(Class cls) 69 { 70 if (cls == null) 71 throw new IllegalArgumentException ("Cannot analyze NULL class."); 72 73 String s = cls.getName(); 74 75 return s.substring(s.lastIndexOf('.')+1); 76 } 77 78 80 public ClassAnalysis(Class cls, String idlName, String javaName) 81 { 82 super(idlName, javaName); 83 84 this.cls = cls; 85 } 86 87 public ClassAnalysis(Class cls, String javaName) 88 { 89 this(cls, Util.javaToIDLName(javaName), javaName); 90 } 91 92 public ClassAnalysis(Class cls) 93 { 94 this(cls, javaNameOfClass(cls)); 95 } 96 97 99 102 public Class getCls() 103 { 104 return cls; 105 } 106 107 109 111 114 protected Class cls; 115 116 } 118 119 | Popular Tags |