true
clazz
3637383940414243444546
); @Override public CtClass enhanceThisClass(DataInputStream dataInputStream) throws Exception { CtClass ctClass = classPool.makeClassIfNew(dataInputStream); if (!ctClass.subtypeOf(classPool.get("net.csdn.modules.http.ApplicationController"))) { return ctClass; } if (Modifier.isAbstract(ctClass.getModifiers())) return ctClass;
2324252627282930313233
private void enhanceThisClass_(ApplicationClass applicationClass) throws Exception { final CtClass ctClass = makeClass(applicationClass); // enhances only EnhancedModel classes if (!ctClass.subtypeOf(classPool.get(EnhancedModel.class.getName()))) { return; } String entityName = ctClass.getName();
270271272273274275276277278279280
try { if (cache == null) cache = cp.get(oldName); CtClass cache2 = cp.get(typeName); if (cache2.subtypeOf(cache)) { cache = cache2; return true; } else return false;
369370371372373374375376377378379
if (t.uppers != null) { int s = t.uppers.size(); for (int k = 0; k < s; k++) { CtClass cc = cp.get((String)t.uppers.get(k)); if (cc.subtypeOf(type)) type = cc; } } type = fixByUppers(t.usedBy, cp, visited, type);
140141142143144145146147148149150
name = name.replace('/', '.'); name = name.substring(0, name.length() - 6); try { CtClass clazz = pool.get(name); if( clazz.subtypeOf(langThrowable) == true ) { throwables.put(name, clazz); } } catch(NotFoundException e)
2627282930313233343536
Logger.debug("CrudSiena: start to enhance class:" + applicationClass.name); // this method will be called after configuration finished final CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get("models.crudsiena.SienaSupport"))) { return; } for (CtField cf: ctClass.getDeclaredFields()) { if (hasAnnotation(cf, siena.Max.class.getName())) {
374375376377378379380381382383384
737738739740741742743744745746747
CtClass one = loader.get("byte[]"); CtClass two = loader.get("byte[][]"); assertEquals("java.lang.Object", TypeData.commonSuperClassEx(one, two).getName()); assertTrue(one.subtypeOf(obj)); assertTrue(two.subtypeOf(obj)); assertFalse(one.subtypeOf(objarray)); assertTrue(two.subtypeOf(objarray)); one = loader.get("int[][]"); two = loader.get("java.lang.Object[]");
739740741742743744745746747748749
CtClass two = loader.get("byte[][]"); assertEquals("java.lang.Object", TypeData.commonSuperClassEx(one, two).getName()); assertTrue(one.subtypeOf(obj)); assertTrue(two.subtypeOf(obj)); assertFalse(one.subtypeOf(objarray)); assertTrue(two.subtypeOf(objarray)); one = loader.get("int[][]"); two = loader.get("java.lang.Object[]"); assertEquals("java.lang.Object[]", TypeData.commonSuperClassEx(one, two).getName()); assertTrue(one.subtypeOf(objarray));