• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
2  *
3  * This program and the accompanying materials are made available under
4  * the terms of the Common Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
6  *
7  * $Id: IAccessFlags.java,v 1.1.1.1 2004/05/09 16:57:46 vlad_r Exp $
8  */
9 package com.vladium.jcd.cls;
10 
11 // ----------------------------------------------------------------------------
12 /**
13  * @author (C) 2001, Vlad Roubtsov
14  */
15 public
16 interface IAccessFlags
17 {
18     // public: ................................................................
19 
20     static final int ACC_PUBLIC         = 0x0001;
21     static final int ACC_PRIVATE        = 0x0002;
22     static final int ACC_PROTECTED      = 0x0004;
23     static final int ACC_STATIC         = 0x0008;
24     static final int ACC_FINAL          = 0x0010;
25     static final int ACC_SYNCHRONIZED   = 0x0020;
26     static final int ACC_SUPER          = 0x0020; // same bit value as ACC_SYNCHRONIZED
27     static final int ACC_VOLATILE       = 0x0040;
28     static final int ACC_BRIDGE         = 0x0040; // same bit value as ACC_VOLATILE
29     static final int ACC_TRANSIENT      = 0x0080;
30     static final int ACC_NATIVE         = 0x0100;
31     static final int ACC_INTERFACE      = 0x0200;
32     static final int ACC_ABSTRACT       = 0x0400;
33 
34     static final int ALL_ACC [] = new int []
35     {
36         ACC_PUBLIC,
37         ACC_PRIVATE,
38         ACC_PROTECTED,
39         ACC_STATIC,
40         ACC_FINAL,
41         ACC_SYNCHRONIZED,
42         ACC_VOLATILE,
43         ACC_TRANSIENT,
44         ACC_NATIVE,
45         ACC_INTERFACE,
46         ACC_ABSTRACT,
47     };
48 
49     static final String ALL_ACC_NAMES [] = new String []
50     {
51         "public",
52         "private",
53         "protected",
54         "static",
55         "final",
56         "synchronized",
57         "volatile",
58         "transient",
59         "native",
60         "interface",
61         "abstract",
62     };
63 
setAccessFlags(int flags)64     void setAccessFlags (int flags);
getAccessFlags()65     int getAccessFlags ();
66 
67 } // end of interface
68 // ----------------------------------------------------------------------------
69