|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.model.Flags
public final class Flags
Utility class for decoding modifier flags in C elements.
This class provides static methods only; it is not intended to be instantiated or subclassed by clients.
Method Summary | |
---|---|
static boolean |
isAbstract(int flags)
Returns whether the given integer includes the abstract modifier. |
static boolean |
isExplicit(int flags)
Returns whether the given integer includes the explicit modifier. |
static boolean |
isExport(int flags)
Return whether the give integer include the keyword export modifier. |
static boolean |
isExtern(int flags)
Returns whether the given integer includes the extern modifier. |
static boolean |
isInline(int flags)
Returns whether the given integer includes the inline modifier. |
static boolean |
isMutable(int flags)
Returns whether the given integer includes the mutable modifier. |
static boolean |
isPrivate(int flags)
Returns whether the given integer includes the private modifier. |
static boolean |
isProtected(int flags)
Returns whether the given integer includes the protected modifier. |
static boolean |
isPublic(int flags)
Returns whether the given integer includes the public modifier. |
static boolean |
isRegister(int flags)
Returns whether the given integer includes the indication that the element is a register storage specifier. |
static boolean |
isStatic(int flags)
Returns whether the given integer includes the static modifier. |
static boolean |
isVirtual(int flags)
Returns whether the given integer includes the virtual modifier. |
static boolean |
isVolatile(int flags)
Returns whether the given integer includes the volatile modifier. |
static String |
toString(int flags)
Returns a standard string describing the given modifier flags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isAbstract(int flags)
abstract
modifier.
flags
- the flags
true
if the abstract
modifier is includedpublic static boolean isExport(int flags)
export
modifier.
flags
- the flags
true
if the element is export
public static boolean isInline(int flags)
inline
modifier.
flags
- the flags
true
if the inline
modifier is includedpublic static boolean isExplicit(int flags)
explicit
modifier.
flags
- the flags
true
if explicit
modifier is includedpublic static boolean isPrivate(int flags)
private
modifier.
flags
- the flags
true
if the private
modifier is includedpublic static boolean isProtected(int flags)
protected
modifier.
flags
- the flags
true
if the protected
modifier is includedpublic static boolean isPublic(int flags)
public
modifier.
flags
- the flags
true
if the public
modifier is includedpublic static boolean isStatic(int flags)
static
modifier.
flags
- the flags
true
if the static
modifier is includedpublic static boolean isExtern(int flags)
extern
modifier.
flags
- the flags
true
if the extern
modifier is includedpublic static boolean isMutable(int flags)
mutable
modifier.
flags
- the flags
true
if the mutable
modifier is includedpublic static boolean isRegister(int flags)
flags
- the flags
true
if the element is marked register storage specifierpublic static boolean isVirtual(int flags)
virtual
modifier.
flags
- the flags
true
if the virtual
modifier is includedpublic static boolean isVolatile(int flags)
volatile
modifier.
flags
- the flags
true
if the volatile
modifier is includedpublic static String toString(int flags)
Examples results:
"public static"
"private"
flags
- the flags
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |