X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/Flags.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/Flags.java index 3fcf33a..9182b7f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/Flags.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/Flags.java @@ -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 * Modifier provides the same functionality as this class, only in - * the org.eclipse.jdt.core.dom package. + * the net.sourceforge.phpdt.core.dom package. *

* * @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 true if the abstract 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 (@deprecated tag in Javadoc comment). @@ -128,9 +132,9 @@ public final class Flags { * @param flags the flags * @return true 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 final modifier. * @@ -147,9 +151,9 @@ public final class Flags { * @return true if the interface 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 native modifier. *