/*******************************************************************************
- * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
+ * Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v0.5
+ * are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
+ * http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
- ******************************************************************************/
+ *******************************************************************************/
package net.sourceforge.phpdt.internal.compiler.lookup;
import net.sourceforge.phpdt.internal.compiler.ast.FieldDeclaration;
import net.sourceforge.phpdt.internal.compiler.impl.Constant;
+
+
public class FieldBinding extends VariableBinding {
public ReferenceBinding declaringClass;
protected FieldBinding() {
public final int getAccessFlags() {
return modifiers & AccJustFlag;
}
+
/* Answer true if the receiver has default visibility
*/
public final boolean isPrivate() {
return (modifiers & AccPrivate) != 0;
}
+/* Answer true if the receiver has private visibility and is used locally
+*/
+
+public final boolean isPrivateUsed() {
+ return (modifiers & AccPrivateUsed) != 0;
+}
/* Answer true if the receiver has protected visibility
*/
/* Answer true if the receiver is not defined in the source of the declaringClass
*/
-public final boolean isSynthetic() {
- return (modifiers & AccSynthetic) != 0;
-}
+//public final boolean isSynthetic() {
+// return (modifiers & AccSynthetic) != 0;
+//}
/* Answer true if the receiver is a transient field
*/
-public final boolean isTransient() {
- return (modifiers & AccTransient) != 0;
-}
+//public final boolean isTransient() {
+// return (modifiers & AccTransient) != 0;
+//}
/* Answer true if the receiver's declaring type is deprecated (or any of its enclosing types)
*/
/* Answer true if the receiver is a volatile field
*/
-public final boolean isVolatile() {
- return (modifiers & AccVolatile) != 0;
-}
+//public final boolean isVolatile() {
+// return (modifiers & AccVolatile) != 0;
+//}
}