improved PHP parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / Flags.java
index 3fcf33a..9182b7f 100644 (file)
@@ -24,13 +24,17 @@ import net.sourceforge.phpdt.internal.compiler.env.IConstants;
  * Note that the numeric values of these flags match the ones for class files
  * as described in the Java Virtual Machine Specification. The AST class
  * <code>Modifier</code> provides the same functionality as this class, only in
- * the <code>org.eclipse.jdt.core.dom</code> package.
+ * the <code>net.sourceforge.phpdt.core.dom</code> package.
  * </p>
  *
  * @see IMember#getFlags
  */
 public final class Flags {
-
+  /**
+        * Constant representing the absence of any flag
+        * @since 3.0
+        */
+       public static final int AccDefault = 0;
        /**
         * Public access flag. See The Java Virtual Machine Specification for more details.
         * @since 2.0
@@ -80,12 +84,12 @@ public final class Flags {
         * Interface property flag. See The Java Virtual Machine Specification for more details.
         * @since 2.0
         */
-//     public static final int AccInterface = IConstants.AccInterface;
+       public static final int AccInterface = IConstants.AccInterface;
        /**
         * Abstract property flag. See The Java Virtual Machine Specification for more details.
         * @since 2.0
         */
-//     public static final int AccAbstract = IConstants.AccAbstract;
+       public static final int AccAbstract = IConstants.AccAbstract;
        /**
         * Strictfp property flag. See The Java Virtual Machine Specification for more details.
         * @since 2.0
@@ -105,7 +109,7 @@ public final class Flags {
         * Deprecated property flag. See The Java Virtual Machine Specification for more details.
         * @since 2.0
         */
-//     public static final int AccDeprecated = IConstants.AccDeprecated;
+       public static final int AccDeprecated = IConstants.AccDeprecated;
        
        /**
         * Not instantiable.
@@ -118,9 +122,9 @@ public final class Flags {
         * @param flags the flags
         * @return <code>true</code> if the <code>abstract</code> modifier is included
         */
-//     public static boolean isAbstract(int flags) {
-//             return (flags & AccAbstract) != 0;
-//     }
+       public static boolean isAbstract(int flags) {
+               return (flags & AccAbstract) != 0;
+       }
        /**
         * Returns whether the given integer includes the indication that the 
         * element is deprecated (<code>@deprecated</code> tag in Javadoc comment).
@@ -128,9 +132,9 @@ public final class Flags {
         * @param flags the flags
         * @return <code>true</code> if the element is marked as deprecated
         */
-//     public static boolean isDeprecated(int flags) {
-//             return (flags & AccDeprecated) != 0;
-//     }
+       public static boolean isDeprecated(int flags) {
+               return (flags & AccDeprecated) != 0;
+       }
        /**
         * Returns whether the given integer includes the <code>final</code> modifier.
         *
@@ -147,9 +151,9 @@ public final class Flags {
         * @return <code>true</code> if the <code>interface</code> modifier is included
         * @since 2.0
         */
-//     public static boolean isInterface(int flags) {
-//             return (flags & AccInterface) != 0;
-//     }
+       public static boolean isInterface(int flags) {
+               return (flags & AccInterface) != 0;
+       }
        /**
         * Returns whether the given integer includes the <code>native</code> modifier.
         *