1 package net.sourceforge.pmd.ast;
2
3
4
5 /**
6 * This interface captures Java access modifiers.
7 */
8 public interface AccessNodeInterface {
9
10 int PUBLIC = 0x0001;
11 int PROTECTED = 0x0002;
12 int PRIVATE = 0x0004;
13 int ABSTRACT = 0x0008;
14 int STATIC = 0x0010;
15 int FINAL = 0x0020;
16 int SYNCHRONIZED = 0x0040;
17 int NATIVE = 0x0080;
18 int TRANSIENT = 0x0100;
19 int VOLATILE = 0x0200;
20 int STRICTFP = 0x1000;
21
22 int getModifiers();
23
24 void setModifiers(int modifiers);
25
26 boolean isPublic();
27
28 /**
29 * @deprecated Use setPublic(boolean) instead.
30 */
31 void setPublic();
32
33 void setPublic(boolean isPublic);
34
35 boolean isProtected();
36
37 /**
38 * @deprecated Use setProtected(boolean) instead.
39 */
40 void setProtected();
41
42 void setProtected(boolean isProtected);
43
44 boolean isPrivate();
45
46 /**
47 * @deprecated Use setPrivate(boolean) instead.
48 */
49 void setPrivate();
50
51 void setPrivate(boolean isPrivate);
52
53 boolean isAbstract();
54
55 /**
56 * @deprecated Use setAbstract(boolean) instead.
57 */
58 void setAbstract();
59
60 void setAbstract(boolean isAbstract);
61
62 boolean isStatic();
63
64 /**
65 * @deprecated Use setStatic(boolean) instead.
66 */
67 void setStatic();
68
69 void setStatic(boolean isStatic);
70
71 boolean isFinal();
72
73 /**
74 * @deprecated Use setFinal(boolean) instead.
75 */
76 void setFinal();
77
78 void setFinal(boolean isFinal);
79
80 boolean isSynchronized();
81
82 /**
83 * @deprecated Use setSynchronized(boolean) instead.
84 */
85 void setSynchronized();
86
87 void setSynchronized(boolean isSynchronized);
88
89 boolean isNative();
90
91 /**
92 * @deprecated Use setNative(boolean) instead.
93 */
94 void setNative();
95
96 void setNative(boolean isNative);
97
98 boolean isTransient();
99
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 }