View Javadoc

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