1 package net.sf.clirr.core.spi; 2 3 15 public final class Scope 16 { 17 private int vis; 18 private String desc; 19 private String decl; 20 21 22 public static final Scope PRIVATE = new Scope(0, "private", "private"); 23 24 25 public static final Scope PACKAGE = new Scope(1, "package", ""); 26 27 28 public static final Scope PROTECTED = new Scope(2, "protected", "protected"); 29 30 31 public static final Scope PUBLIC = new Scope(3, "public", "public"); 32 33 private Scope(int vis, String desc, String decl) 34 { 35 this.vis = vis; 36 this.desc = desc; 37 this.decl = decl; 38 } 39 40 public boolean isMoreVisibleThan(Scope v) 41 { 42 return this.vis > v.vis; 43 } 44 45 public boolean isLessVisibleThan(Scope v) 46 { 47 return this.vis < v.vis; 48 } 49 50 public String getDesc() 51 { 52 return desc; 53 } 54 55 56 public String getDecl() 57 { 58 return decl; 59 } 60 } 61 | Popular Tags |