KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > umd > cs > findbugs > classfile > IClassConstants


1 /*
2  * FindBugs - Find Bugs in Java programs
3  * Copyright (C) 2006, University of Maryland
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package edu.umd.cs.findbugs.classfile;
21
22 /**
23  * @author David Hovemeyer
24  */

25 public interface IClassConstants {
26     public static final int MAGIC = 0xCAFEBABE;
27
28     public static final int CONSTANT_Class = 7;
29     public static final int CONSTANT_Fieldref = 9;
30     public static final int CONSTANT_Methodref = 10;
31     public static final int CONSTANT_InterfaceMethodref = 11;
32     public static final int CONSTANT_String = 8;
33     public static final int CONSTANT_Integer = 3;
34     public static final int CONSTANT_Float = 4;
35     public static final int CONSTANT_Long = 5;
36     public static final int CONSTANT_Double = 6;
37     public static final int CONSTANT_NameAndType = 12;
38     public static final int CONSTANT_Utf8 = 1;
39
40     public static final int ACC_PUBLIC = 0x0001;
41     public static final int ACC_PRIVATE = 0x0002;
42     public static final int ACC_PROTECTED = 0x0004;
43     public static final int ACC_STATIC = 0x0008;
44     public static final int ACC_FINAL = 0x0010;
45     public static final int ACC_SUPER = 0x0020;
46     public static final int ACC_VOLATILE = 0x0040;
47     public static final int ACC_TRANSIENT = 0x0080;
48     public static final int ACC_INTERFACE = 0x0200;
49     public static final int ACC_ABSTRACT = 0x0400;
50 }
51
Popular Tags