Source Code Cross Referenced for ClassFileConstants.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » compiler » classfmt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.internal.compiler.classfmt 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2000, 2006 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.jdt.internal.compiler.classfmt;
011:
012:        import org.eclipse.jdt.internal.compiler.ast.ASTNode;
013:
014:        public interface ClassFileConstants {
015:
016:            int AccDefault = 0;
017:            /*
018:             * Modifiers
019:             */
020:            int AccPublic = 0x0001;
021:            int AccPrivate = 0x0002;
022:            int AccProtected = 0x0004;
023:            int AccStatic = 0x0008;
024:            int AccFinal = 0x0010;
025:            int AccSynchronized = 0x0020;
026:            int AccVolatile = 0x0040;
027:            int AccBridge = 0x0040;
028:            int AccTransient = 0x0080;
029:            int AccVarargs = 0x0080;
030:            int AccNative = 0x0100;
031:            int AccInterface = 0x0200;
032:            int AccAbstract = 0x0400;
033:            int AccStrictfp = 0x0800;
034:            int AccSynthetic = 0x1000;
035:            int AccAnnotation = 0x2000;
036:            int AccEnum = 0x4000;
037:
038:            /**
039:             * Other VM flags.
040:             */
041:            int AccSuper = 0x0020;
042:
043:            /**
044:             * Extra flags for types and members attributes.
045:             */
046:            int AccAnnotationDefault = ASTNode.Bit18; // indicate presence of an attribute  "DefaultValue" (annotation method)
047:            int AccDeprecated = ASTNode.Bit21; // indicate presence of an attribute "Deprecated"
048:
049:            int Utf8Tag = 1;
050:            int IntegerTag = 3;
051:            int FloatTag = 4;
052:            int LongTag = 5;
053:            int DoubleTag = 6;
054:            int ClassTag = 7;
055:            int StringTag = 8;
056:            int FieldRefTag = 9;
057:            int MethodRefTag = 10;
058:            int InterfaceMethodRefTag = 11;
059:            int NameAndTypeTag = 12;
060:
061:            int ConstantMethodRefFixedSize = 5;
062:            int ConstantClassFixedSize = 3;
063:            int ConstantDoubleFixedSize = 9;
064:            int ConstantFieldRefFixedSize = 5;
065:            int ConstantFloatFixedSize = 5;
066:            int ConstantIntegerFixedSize = 5;
067:            int ConstantInterfaceMethodRefFixedSize = 5;
068:            int ConstantLongFixedSize = 9;
069:            int ConstantStringFixedSize = 3;
070:            int ConstantUtf8FixedSize = 3;
071:            int ConstantNameAndTypeFixedSize = 5;
072:
073:            int MAJOR_VERSION_1_1 = 45;
074:            int MAJOR_VERSION_1_2 = 46;
075:            int MAJOR_VERSION_1_3 = 47;
076:            int MAJOR_VERSION_1_4 = 48;
077:            int MAJOR_VERSION_1_5 = 49;
078:            int MAJOR_VERSION_1_6 = 50;
079:            int MAJOR_VERSION_1_7 = 51;
080:
081:            int MINOR_VERSION_0 = 0;
082:            int MINOR_VERSION_1 = 1;
083:            int MINOR_VERSION_2 = 2;
084:            int MINOR_VERSION_3 = 3;
085:            int MINOR_VERSION_4 = 4;
086:
087:            // JDK 1.1 -> 1.7, comparable value allowing to check both major/minor version at once 1.4.1 > 1.4.0
088:            // 16 unsigned bits for major, then 16 bits for minor
089:            long JDK1_1 = ((long) ClassFileConstants.MAJOR_VERSION_1_1 << 16)
090:                    + ClassFileConstants.MINOR_VERSION_3; // 1.1. is 45.3
091:            long JDK1_2 = ((long) ClassFileConstants.MAJOR_VERSION_1_2 << 16)
092:                    + ClassFileConstants.MINOR_VERSION_0;
093:            long JDK1_3 = ((long) ClassFileConstants.MAJOR_VERSION_1_3 << 16)
094:                    + ClassFileConstants.MINOR_VERSION_0;
095:            long JDK1_4 = ((long) ClassFileConstants.MAJOR_VERSION_1_4 << 16)
096:                    + ClassFileConstants.MINOR_VERSION_0;
097:            long JDK1_5 = ((long) ClassFileConstants.MAJOR_VERSION_1_5 << 16)
098:                    + ClassFileConstants.MINOR_VERSION_0;
099:            long JDK1_6 = ((long) ClassFileConstants.MAJOR_VERSION_1_6 << 16)
100:                    + ClassFileConstants.MINOR_VERSION_0;
101:            long JDK1_7 = ((long) ClassFileConstants.MAJOR_VERSION_1_7 << 16)
102:                    + ClassFileConstants.MINOR_VERSION_0;
103:
104:            /*
105:             * cldc1.1 is 45.3, but we modify it to be different from JDK1_1.
106:             * In the code gen, we will generate the same target value as JDK1_1
107:             */
108:            long CLDC_1_1 = ((long) ClassFileConstants.MAJOR_VERSION_1_1 << 16)
109:                    + ClassFileConstants.MINOR_VERSION_4;
110:
111:            // jdk level used to denote future releases: optional behavior is not enabled for now, but may become so. In order to enable these,
112:            // search for references to this constant, and change it to one of the official JDT constants above.
113:            long JDK_DEFERRED = Long.MAX_VALUE;
114:
115:            int INT_ARRAY = 10;
116:            int BYTE_ARRAY = 8;
117:            int BOOLEAN_ARRAY = 4;
118:            int SHORT_ARRAY = 9;
119:            int CHAR_ARRAY = 5;
120:            int LONG_ARRAY = 11;
121:            int FLOAT_ARRAY = 6;
122:            int DOUBLE_ARRAY = 7;
123:
124:            // Debug attributes
125:            int ATTR_SOURCE = 0x1; // SourceFileAttribute
126:            int ATTR_LINES = 0x2; // LineNumberAttribute
127:            int ATTR_VARS = 0x4; // LocalVariableTableAttribute
128:            int ATTR_STACK_MAP_TABLE = 0x8; // Stack map table attribute
129:            int ATTR_STACK_MAP = 0x10; // Stack map attribute: cldc
130:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.