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 booleanisAbstract(int flags) Returns whether the given integer includes theabstractmodifier.static booleanisExplicit(int flags) Returns whether the given integer includes theexplicitmodifier.static booleanisExport(int flags) Return whether the give integer include the keywordexportmodifier.static booleanisExtern(int flags) Returns whether the given integer includes theexternmodifier.static booleanisInline(int flags) Returns whether the given integer includes theinlinemodifier.static booleanisMutable(int flags) Returns whether the given integer includes themutablemodifier.static booleanisPrivate(int flags) Returns whether the given integer includes theprivatemodifier.static booleanisProtected(int flags) Returns whether the given integer includes theprotectedmodifier.static booleanisPublic(int flags) Returns whether the given integer includes thepublicmodifier.static booleanisRegister(int flags) Returns whether the given integer includes the indication that the element is a register storage specifier.static booleanisStatic(int flags) Returns whether the given integer includes thestaticmodifier.static booleanisVirtual(int flags) Returns whether the given integer includes thevirtualmodifier.static booleanisVolatile(int flags) Returns whether the given integer includes thevolatilemodifier.static StringtoString(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 theabstractmodifier.- Parameters:
flags- the flags- Returns:
trueif theabstractmodifier is included
-
isExport
public static boolean isExport(int flags) Return whether the give integer include the keywordexportmodifier.- Parameters:
flags- the flags- Returns:
trueif the element isexport
-
isInline
public static boolean isInline(int flags) Returns whether the given integer includes theinlinemodifier.- Parameters:
flags- the flags- Returns:
trueif theinlinemodifier is included
-
isExplicit
public static boolean isExplicit(int flags) Returns whether the given integer includes theexplicitmodifier.- Parameters:
flags- the flags- Returns:
trueifexplicitmodifier is included
-
isPrivate
public static boolean isPrivate(int flags) Returns whether the given integer includes theprivatemodifier.- Parameters:
flags- the flags- Returns:
trueif theprivatemodifier is included
-
isProtected
public static boolean isProtected(int flags) Returns whether the given integer includes theprotectedmodifier.- Parameters:
flags- the flags- Returns:
trueif theprotectedmodifier is included
-
isPublic
public static boolean isPublic(int flags) Returns whether the given integer includes thepublicmodifier.- Parameters:
flags- the flags- Returns:
trueif thepublicmodifier is included
-
isStatic
public static boolean isStatic(int flags) Returns whether the given integer includes thestaticmodifier.- Parameters:
flags- the flags- Returns:
trueif thestaticmodifier is included
-
isExtern
public static boolean isExtern(int flags) Returns whether the given integer includes theexternmodifier.- Parameters:
flags- the flags- Returns:
trueif theexternmodifier is included
-
isMutable
public static boolean isMutable(int flags) Returns whether the given integer includes themutablemodifier.- Parameters:
flags- the flags- Returns:
trueif themutablemodifier 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:
trueif the element is marked register storage specifier
-
isVirtual
public static boolean isVirtual(int flags) Returns whether the given integer includes thevirtualmodifier.- Parameters:
flags- the flags- Returns:
trueif thevirtualmodifier is included
-
isVolatile
public static boolean isVolatile(int flags) Returns whether the given integer includes thevolatilemodifier.- Parameters:
flags- the flags- Returns:
trueif thevolatilemodifier 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
-