Package net.sf.cglib.core

Examples of net.sf.cglib.core.Transformer


/*     */   }
/*     */
/*     */   private void emitIndexBySignature(List methods)
/*     */   {
/* 112 */     CodeEmitter e = begin_method(1, SIGNATURE_GET_INDEX, null, null);
/* 113 */     List signatures = CollectionUtils.transform(methods, new Transformer() {
/*     */       public Object transform(Object obj) {
/* 115 */         return ReflectUtils.getSignature((Method)obj).toString();
/*     */       }
/*     */     });
/* 118 */     e.load_arg(0);
View Full Code Here


/*     */   private void emitIndexByClassArray(List methods)
/*     */   {
/* 126 */     CodeEmitter e = begin_method(1, METHOD_GET_INDEX, null, null);
/* 127 */     if (methods.size() > 100)
/*     */     {
/* 129 */       List signatures = CollectionUtils.transform(methods, new Transformer() {
/*     */         public Object transform(Object obj) {
/* 131 */           String s = ReflectUtils.getSignature((Method)obj).toString();
/* 132 */           return s.substring(0, s.lastIndexOf(')') + 1);
/*     */         }
/*     */       });
View Full Code Here

/*  453 */     List actualMethods = new ArrayList();
/*  454 */     List interfaceMethods = new ArrayList();
/*  455 */     Set forcePublic = new HashSet();
/*  456 */     getMethods(sc, this.interfaces, actualMethods, interfaceMethods, forcePublic);
/*      */
/*  458 */     List methods = CollectionUtils.transform(actualMethods, new Transformer(forcePublic) {
/*      */       public Object transform(Object value) {
/*  460 */         Method method = (Method)value;
/*  461 */         int modifiers = 0x10 | method.getModifiers() & 0xFFFFFBFF & 0xFFFFFEFF & 0xFFFFFFDF;
/*      */
/*  466 */         if (this.val$forcePublic.contains(MethodWrapper.create(method))) {
View Full Code Here

TOP

Related Classes of net.sf.cglib.core.Transformer

Copyright © 2018 www.massapicom. 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.