001: package net.sourceforge.pmd.ast;
002:
003: // FUTURE Rename this to AccessNode
004: // FUTURE Remove non JavaBean setters
005: /**
006: * This interface captures Java access modifiers.
007: */
008: public interface AccessNodeInterface {
009:
010: int PUBLIC = 0x0001;
011: int PROTECTED = 0x0002;
012: int PRIVATE = 0x0004;
013: int ABSTRACT = 0x0008;
014: int STATIC = 0x0010;
015: int FINAL = 0x0020;
016: int SYNCHRONIZED = 0x0040;
017: int NATIVE = 0x0080;
018: int TRANSIENT = 0x0100;
019: int VOLATILE = 0x0200;
020: int STRICTFP = 0x1000;
021:
022: int getModifiers();
023:
024: void setModifiers(int modifiers);
025:
026: boolean isPublic();
027:
028: /**
029: * @deprecated Use setPublic(boolean) instead.
030: */
031: void setPublic();
032:
033: void setPublic(boolean isPublic);
034:
035: boolean isProtected();
036:
037: /**
038: * @deprecated Use setProtected(boolean) instead.
039: */
040: void setProtected();
041:
042: void setProtected(boolean isProtected);
043:
044: boolean isPrivate();
045:
046: /**
047: * @deprecated Use setPrivate(boolean) instead.
048: */
049: void setPrivate();
050:
051: void setPrivate(boolean isPrivate);
052:
053: boolean isAbstract();
054:
055: /**
056: * @deprecated Use setAbstract(boolean) instead.
057: */
058: void setAbstract();
059:
060: void setAbstract(boolean isAbstract);
061:
062: boolean isStatic();
063:
064: /**
065: * @deprecated Use setStatic(boolean) instead.
066: */
067: void setStatic();
068:
069: void setStatic(boolean isStatic);
070:
071: boolean isFinal();
072:
073: /**
074: * @deprecated Use setFinal(boolean) instead.
075: */
076: void setFinal();
077:
078: void setFinal(boolean isFinal);
079:
080: boolean isSynchronized();
081:
082: /**
083: * @deprecated Use setSynchronized(boolean) instead.
084: */
085: void setSynchronized();
086:
087: void setSynchronized(boolean isSynchronized);
088:
089: boolean isNative();
090:
091: /**
092: * @deprecated Use setNative(boolean) instead.
093: */
094: void setNative();
095:
096: void setNative(boolean isNative);
097:
098: boolean isTransient();
099:
100: /**
101: * @deprecated Use setTransient(boolean) instead.
102: */
103: void setTransient();
104:
105: void setTransient(boolean isTransient);
106:
107: boolean isVolatile();
108:
109: /**
110: * @deprecated Use setVolatile(boolean) instead.
111: */
112: void setVolatile();
113:
114: void setVolatile(boolean isVolatile);
115:
116: boolean isStrictfp();
117:
118: /**
119: * @deprecated Use setStrictfp(boolean) instead.
120: */
121: void setStrictfp();
122:
123: void setStrictfp(boolean isStrictfp);
124:
125: boolean isPackagePrivate();
126: }
|