Package org.eclipse.cdt.core.model
Class Flags
java.lang.Object
org.eclipse.cdt.core.model.Flags
Utility class for decoding modifier flags in C elements.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAbstract
(int flags) Returns whether the given integer includes theabstract
modifier.static boolean
isExplicit
(int flags) Returns whether the given integer includes theexplicit
modifier.static boolean
isExport
(int flags) Return whether the give integer include the keywordexport
modifier.static boolean
isExtern
(int flags) Returns whether the given integer includes theextern
modifier.static boolean
isInline
(int flags) Returns whether the given integer includes theinline
modifier.static boolean
isMutable
(int flags) Returns whether the given integer includes themutable
modifier.static boolean
isPrivate
(int flags) Returns whether the given integer includes theprivate
modifier.static boolean
isProtected
(int flags) Returns whether the given integer includes theprotected
modifier.static boolean
isPublic
(int flags) Returns whether the given integer includes thepublic
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 thestatic
modifier.static boolean
isVirtual
(int flags) Returns whether the given integer includes thevirtual
modifier.static boolean
isVolatile
(int flags) Returns whether the given integer includes thevolatile
modifier.static String
toString
(int flags) Returns a standard string describing the given modifier flags.
-
Method Details
-
isAbstract
public static boolean isAbstract(int flags) Returns whether the given integer includes theabstract
modifier.- Parameters:
flags
- the flags- Returns:
true
if theabstract
modifier is included
-
isExport
public static boolean isExport(int flags) Return whether the give integer include the keywordexport
modifier.- Parameters:
flags
- the flags- Returns:
true
if the element isexport
-
isInline
public static boolean isInline(int flags) Returns whether the given integer includes theinline
modifier.- Parameters:
flags
- the flags- Returns:
true
if theinline
modifier is included
-
isExplicit
public static boolean isExplicit(int flags) Returns whether the given integer includes theexplicit
modifier.- Parameters:
flags
- the flags- Returns:
true
ifexplicit
modifier is included
-
isPrivate
public static boolean isPrivate(int flags) Returns whether the given integer includes theprivate
modifier.- Parameters:
flags
- the flags- Returns:
true
if theprivate
modifier is included
-
isProtected
public static boolean isProtected(int flags) Returns whether the given integer includes theprotected
modifier.- Parameters:
flags
- the flags- Returns:
true
if theprotected
modifier is included
-
isPublic
public static boolean isPublic(int flags) Returns whether the given integer includes thepublic
modifier.- Parameters:
flags
- the flags- Returns:
true
if thepublic
modifier is included
-
isStatic
public static boolean isStatic(int flags) Returns whether the given integer includes thestatic
modifier.- Parameters:
flags
- the flags- Returns:
true
if thestatic
modifier is included
-
isExtern
public static boolean isExtern(int flags) Returns whether the given integer includes theextern
modifier.- Parameters:
flags
- the flags- Returns:
true
if theextern
modifier is included
-
isMutable
public static boolean isMutable(int flags) Returns whether the given integer includes themutable
modifier.- Parameters:
flags
- the flags- Returns:
true
if themutable
modifier is included
-
isRegister
public static boolean isRegister(int flags) Returns whether the given integer includes the indication that the element is a register storage specifier.- Parameters:
flags
- the flags- Returns:
true
if the element is marked register storage specifier
-
isVirtual
public static boolean isVirtual(int flags) Returns whether the given integer includes thevirtual
modifier.- Parameters:
flags
- the flags- Returns:
true
if thevirtual
modifier is included
-
isVolatile
public static boolean isVolatile(int flags) Returns whether the given integer includes thevolatile
modifier.- Parameters:
flags
- the flags- Returns:
true
if thevolatile
modifier is included
-
toString
Returns a standard string describing the given modifier flags. Only modifier flags are included in the output; the deprecated and synthetic flags are ignored if set.Examples results:
"public static"
"private"
- Parameters:
flags
- the flags- Returns:
- the standard string representation of the given flags
-