Examples of subtypeOf()


Examples of javassist.CtClass.subtypeOf()

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")) {
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

            return;
        }

        CtClass ctClass = makeClass(applicationClass);

        if (!ctClass.subtypeOf(classPool.get(Mailer.class.getName()))) {
            return;
        }

        for (final CtMethod ctMethod : ctClass.getDeclaredMethods()) {
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

            return;
        }

        CtClass ctClass = makeClass(applicationClass);

        if (!ctClass.subtypeOf(classPool.get(ControllersEnhancer.ControllerSupport.class.getName()))) {
            return;
        }


        boolean needsContinuations = shouldEnhance(ctClass);
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

            return;
        }

        CtClass ctClass = makeClass(applicationClass);

        if (!ctClass.subtypeOf(classPool.get(ControllerSupport.class.getName()))) {
            return;
        }

        for (final CtMethod ctMethod : ctClass.getDeclaredMethods()) {
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

        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()) {

View Full Code Here

Examples of javassist.CtClass.subtypeOf()

public class JPAEnhancer extends Enhancer {

    public void enhanceThisClass(ApplicationClass applicationClass) throws Exception {
        CtClass ctClass = makeClass(applicationClass);

        if (!ctClass.subtypeOf(classPool.get("yalp.db.jpa.JPABase"))) {
            return;
        }

        // Enhance only JPA entities
        if (!hasAnnotation(ctClass, "javax.persistence.Entity")) {
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

            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)
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

/*     */       {
/* 270 */         if (this.cache == null) {
/* 271 */           this.cache = cp.get(oldName);
/*     */         }
/* 273 */         CtClass cache2 = cp.get(typeName);
/* 274 */         if (cache2.subtypeOf(this.cache)) {
/* 275 */           this.cache = cache2;
/* 276 */           return true;
/*     */         }
/*     */
/* 279 */         return false;
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

/*     */         }
/* 243 */         String cname = desc.substring(i, j);
/* 244 */         if (!cname.equals(argClassNames[n])) {
/* 245 */           CtClass clazz = lookupClassByJvmName(argClassNames[n]);
/*     */           try {
/* 247 */             if (clazz.subtypeOf(lookupClassByJvmName(cname)))
/* 248 */               result++;
/*     */             else
/* 250 */               return -1;
/*     */           }
/*     */           catch (NotFoundException e) {
View Full Code Here

Examples of javassist.CtClass.subtypeOf()

    byte[] buffer = transformer.transform(Play.classloader, applicationClass.name, null, null, applicationClass.enhancedByteCode);
    if (buffer != null) applicationClass.enhancedByteCode = buffer;

    CtClass ctClass = makeClass(applicationClass);
    if (!ctClass.subtypeOf(classPool.get("play.modules.ebean.EbeanSupport"))) {
      // We don't want play style enhancements to happen to classes other than subclasses of EbeanSupport
      return;
    }

    // Enhance only JPA entities
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.