Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package net.sf.cglib.core;
 /*    */ 
 /*    */ import java.lang.reflect.Member;
 /*    */ import java.lang.reflect.Modifier;
 /*    */ import net.sf.cglib.asm.Type;
 /*    */ 
 /*    */ public class VisibilityPredicate
 /*    */   implements Predicate
 /*    */ {
/*    */   private boolean protectedOk;
/*    */   private String pkg;
/*    */ 
/*    */   public VisibilityPredicate(Class sourceboolean protectedOk)
/*    */   {
/* 26 */     this. = protectedOk;
/* 27 */     this. = TypeUtils.getPackageName(Type.getType(source));
/*    */   }
/*    */ 
/*    */   public boolean evaluate(Object arg) {
/* 31 */     int mod = (arg instanceof Member) ? ((Member)arg).getModifiers() : ((Integer)arg).intValue();
/* 32 */     if (Modifier.isPrivate(mod))
/* 33 */       return false;
/* 34 */     if (Modifier.isPublic(mod))
/* 35 */       return true;
/* 36 */     if (Modifier.isProtected(mod)) {
/* 37 */       return this.;
/*    */     }
/* 39 */     return this..equals(TypeUtils.getPackageName(Type.getType(((Member)arg).getDeclaringClass())));
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     net.sf.cglib.core.VisibilityPredicate
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X