View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java.ast;
5   
6   import net.sourceforge.pmd.lang.ast.Node;
7   
8   // FUTURE Remove non JavaBean setters
9   /**
10   * This interface captures Java access modifiers.
11   */
12  public interface AccessNode extends Node {
13  
14  	int PUBLIC = 0x0001;
15  	int PROTECTED = 0x0002;
16  	int PRIVATE = 0x0004;
17  	int ABSTRACT = 0x0008;
18  	int STATIC = 0x0010;
19  	int FINAL = 0x0020;
20  	int SYNCHRONIZED = 0x0040;
21  	int NATIVE = 0x0080;
22  	int TRANSIENT = 0x0100;
23  	int VOLATILE = 0x0200;
24  	int STRICTFP = 0x1000;
25  	int DEFAULT = 0x2000;
26  
27  	int getModifiers();
28  
29  	void setModifiers(int modifiers);
30  
31  	boolean isPublic();
32  
33  	void setPublic(boolean isPublic);
34  
35  	boolean isProtected();
36  
37  	void setProtected(boolean isProtected);
38  
39  	boolean isPrivate();
40  
41  	void setPrivate(boolean isPrivate);
42  
43  	boolean isAbstract();
44  
45  	void setAbstract(boolean isAbstract);
46  
47  	boolean isStatic();
48  
49  	void setStatic(boolean isStatic);
50  
51  	boolean isFinal();
52  
53  	void setFinal(boolean isFinal);
54  
55  	boolean isSynchronized();
56  
57  	void setSynchronized(boolean isSynchronized);
58  
59  	boolean isNative();
60  
61  	void setNative(boolean isNative);
62  
63  	boolean isTransient();
64  
65  	void setTransient(boolean isTransient);
66  
67  	boolean isVolatile();
68  
69  	void setVolatile(boolean isVolatile);
70  
71  	boolean isStrictfp();
72  
73  	void setStrictfp(boolean isStrictfp);
74  
75  	boolean isPackagePrivate();
76  
77  	void setDefault(boolean isDefault);
78  
79  	boolean isDefault();
80  }