* 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
* 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
* 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.
* @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).
* @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.
*
* @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.
*