KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > lookup > ExtraCompilerModifiers


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.compiler.lookup;
12
13 import org.eclipse.jdt.internal.compiler.ast.ASTNode;
14 import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
15
16 // TODO (philippe) these should be moved to tagbits
17
public interface ExtraCompilerModifiers { // modifier constant
18
// those constants are depending upon ClassFileConstants (relying that classfiles only use the 16 lower bits)
19
final int AccJustFlag = 0xFFFF;// 16 lower bits
20

21     // bit17 - free
22
// bit18 - use by ClassFileConstants.AccAnnotationDefault
23
final int AccRestrictedAccess = ASTNode.Bit19;
24     final int AccFromClassFile = ASTNode.Bit20;
25     final int AccDefaultAbstract = ASTNode.Bit20;
26     // bit21 - use by ClassFileConstants.AccDeprecated
27
final int AccDeprecatedImplicitly = ASTNode.Bit22; // record whether deprecated itself or contained by a deprecated type
28
final int AccAlternateModifierProblem = ASTNode.Bit23;
29     final int AccModifierProblem = ASTNode.Bit24;
30     final int AccSemicolonBody = ASTNode.Bit25;
31     final int AccUnresolved = ASTNode.Bit26;
32     final int AccBlankFinal = ASTNode.Bit27; // for blank final variables
33
final int AccIsDefaultConstructor = ASTNode.Bit27; // for default constructor
34
final int AccLocallyUsed = ASTNode.Bit28; // used to diagnose unused private/local members
35
final int AccVisibilityMASK = ClassFileConstants.AccPublic | ClassFileConstants.AccProtected | ClassFileConstants.AccPrivate;
36     
37     final int AccOverriding = ASTNode.Bit29; // record fact a method overrides another one
38
final int AccImplementing = ASTNode.Bit30; // record fact a method implements another one (it is concrete and overrides an abstract one)
39
final int AccGenericSignature = ASTNode.Bit31; // record fact a type/method/field involves generics in its signature (and need special signature attr)
40
}
41
Popular Tags