1 23 24 25 package com.sun.jdo.api.persistence.enhancer.classfile; 26 27 30 31 abstract public class ClassMember implements VMConstants { 32 33 34 35 38 final public boolean isStatic() { 39 return (access() & ACCStatic) != 0; 40 } 41 42 45 final public boolean isFinal() { 46 return (access() & ACCFinal) != 0; 47 } 48 49 52 public void setIsFinal(boolean newFinal) { 53 if (newFinal) 54 setAccess(access() | ACCFinal); 55 else 56 setAccess(access() & ~ACCFinal); 57 } 58 59 62 final public boolean isPrivate() { 63 return (access() & ACCPrivate) != 0; 64 } 65 66 69 final public boolean isProtected() { 70 return (access() & ACCProtected) != 0; 71 } 72 73 76 final public boolean isPublic() { 77 return (access() & ACCPublic) != 0; 78 } 79 80 81 82 85 abstract public int access(); 86 87 90 abstract public void setAccess(int newAccess); 91 92 95 abstract public ConstUtf8 name(); 96 97 100 abstract public ConstUtf8 signature(); 101 102 105 abstract public AttributeVector attributes(); 106 107 } 108 109 110 | Popular Tags |