View Javadoc
1 package jrre.classloader.classfile.access_flags; 2 3 public abstract class AccessFlags{ 4 5 protected boolean isPublic, isPrivate, isProtected, isStatic,isFinal,isAbstract; 6 7 // Class flags. 8 public AccessFlags(boolean isPublic, 9 boolean isFinal, 10 boolean isAbstract){ 11 12 this.isPublic = isPublic; 13 this.isFinal = isFinal; 14 this.isAbstract = isAbstract; 15 16 } 17 18 // Field flags. 19 public AccessFlags(boolean isPublic, 20 boolean isPrivate, 21 boolean isProtected, 22 boolean isStatic){ 23 24 this.isPublic = isPublic; 25 this.isPrivate = isPrivate; 26 this.isProtected = isProtected; 27 this.isStatic = isStatic; 28 } 29 30 // Method flags. 31 public AccessFlags(boolean isPublic, 32 boolean isPrivate, 33 boolean isProtected, 34 boolean isStatic, 35 boolean isFinal, 36 boolean isAbstract){ 37 38 this.isPublic = isPublic; 39 this.isPrivate = isPrivate; 40 this.isProtected = isProtected; 41 this.isStatic = isStatic; 42 this.isFinal = isFinal; 43 } 44 45 public void setPublic(boolean b){isPublic = b;} 46 public void setFinal(boolean b){isFinal = b;} 47 public void setAbstract(boolean b){isAbstract = b;} 48 49 public boolean getPublic(){return isPublic;} 50 public boolean getFinal(){return isFinal;} 51 public boolean getAbstract(){return isAbstract;} 52 53 public abstract String toString(); 54 /* 55 public String toString(){ 56 return "AccessFlags: \n" + "\tisPublic: " + isPublic + "\n" + 57 "\tisFinal: " + isFinal + "\n" + 58 "\tisAbstract: " + isAbstract; 59 } 60 */ 61 62 63 }

This page was automatically generated by Maven