public final class Flags extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isAbstract(int flags)
abstract
modifier.flags
- the flagstrue
if the abstract
modifier is includedpublic static boolean isExport(int flags)
export
modifier.flags
- the flagstrue
if the element is export
public static boolean isInline(int flags)
inline
modifier.flags
- the flagstrue
if the inline
modifier is includedpublic static boolean isExplicit(int flags)
explicit
modifier.flags
- the flagstrue
if explicit
modifier is includedpublic static boolean isPrivate(int flags)
private
modifier.flags
- the flagstrue
if the private
modifier is includedpublic static boolean isProtected(int flags)
protected
modifier.flags
- the flagstrue
if the protected
modifier is includedpublic static boolean isPublic(int flags)
public
modifier.flags
- the flagstrue
if the public
modifier is includedpublic static boolean isStatic(int flags)
static
modifier.flags
- the flagstrue
if the static
modifier is includedpublic static boolean isExtern(int flags)
extern
modifier.flags
- the flagstrue
if the extern
modifier is includedpublic static boolean isMutable(int flags)
mutable
modifier.flags
- the flagstrue
if the mutable
modifier is includedpublic static boolean isRegister(int flags)
flags
- the flagstrue
if the element is marked register storage specifierpublic static boolean isVirtual(int flags)
virtual
modifier.flags
- the flagstrue
if the virtual
modifier is includedpublic static boolean isVolatile(int flags)
volatile
modifier.flags
- the flagstrue
if the volatile
modifier is includedpublic static String toString(int flags)
Examples results:
"public static"
"private"
flags
- the flagsCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.