new version with WorkingCopy Management
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / lookup / FieldBinding.java
index bed0f21..1884c48 100644 (file)
@@ -1,17 +1,19 @@
 /*******************************************************************************
- * 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;
+import net.sourceforge.phpeclipse.internal.compiler.ast.FieldDeclaration;
+
+
 
 public class FieldBinding extends VariableBinding {
        public ReferenceBinding declaringClass;
@@ -138,6 +140,7 @@ public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invoca
 public final int getAccessFlags() {
        return modifiers & AccJustFlag;
 }
+
 /* Answer true if the receiver has default visibility
 */
 
@@ -156,6 +159,12 @@ public final boolean isDeprecated() {
 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
 */
 
@@ -177,15 +186,15 @@ public final boolean isStatic() {
 /* 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)
 */
 
@@ -196,7 +205,7 @@ public final boolean isViewedAsDeprecated() {
 /* 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;
+//}
 }