true
clazz
1112131415161718192021
public class JPAEnhancer extends Enhancer { public void enhanceThisClass(ApplicationClass applicationClass) throws Exception { CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get("play.db.jpa.JPABase"))) { return; } // Enhance only JPA entities if (!hasAnnotation(ctClass, "javax.persistence.Entity")) {
3031323334353637383940
return; } CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get(ControllersEnhancer.ControllerSupport.class.getName()))) { return; } final boolean[] needsContinuations = new boolean[]{false};
7172737475767778798081
if (isAnon(applicationClass)) { return; } CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get(LocalVariablesSupport.class.getName())) && !ctClass.getName().matches("^controllers\\..*\\$class$")) { return; } for (CtMethod method : ctClass.getDeclaredMethods()) {
910111213141516171819
@Override public void enhanceThisClass(ApplicationClass applicationClass) throws Exception { CtClass ctClass = makeClass(applicationClass); if (ctClass.subtypeOf(classPool.get(Model.class.getName()))) { String entityName = ctClass.getName(); Logger.trace("Enhancing ODB entity %s", entityName); // All
8081828384858687888990
byte[] result = null; CtClass cc = null; try { cc = pool.makeClass(new ByteArrayInputStream(bytes)); if (cc.subtypeOf(pool.get(ActiveRecord.class.getName())) && furtherCheckAllowedToChange(cc)) { addMethods(cc, ClassWorkSource.arMethods); result = cc.toBytecode(); } else { result = bytes;
269270271272273274275276277278279
try { if (cache == null) cache = cp.get(oldName); CtClass cache2 = cp.get(typeName); if (cache2.subtypeOf(cache)) { cache = cache2; return true; } else return false;
2829303132333435363738
if(ctClass == null) return; String pack = ctClass.getPackageName(); if(pack==null || pack.startsWith("java.")){ return; } if (ctClass.subtypeOf(classPool.get(siena.Json.class.getName()))) { return; } boolean isModel = false; if(ctClass.subclassOf(classPool.get(siena.Model.class.getName()))){
1920212223242526272829
return; } CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get(Mailer.class.getName()))) { return; } for (final CtMethod ctMethod : ctClass.getDeclaredMethods()) {
4546474849505152535455
return; } CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get(ControllersEnhancer.ControllerSupport.class.getName()))) { return ; } boolean needsContinuations = shouldEnhance( ctClass );
3233343536373839404142
return; } CtClass ctClass = makeClass(applicationClass); if (!ctClass.subtypeOf(classPool.get(ControllerSupport.class.getName()))) { return; } for (final CtMethod ctMethod : ctClass.getDeclaredMethods()) {