public final class Flags
extends java.lang.Object
This class provides static methods only; it is not intended to be instantiated or subclassed by clients.
Modifier and Type | Field and Description |
---|---|
static int |
AccAbstract
Abstract property flag.
|
static int |
AccDefault
Constant representing the absence of any flag
|
static int |
AccDeprecated
Deprecated property flag.
|
static int |
AccPrivate
Private access flag.
|
static int |
AccProtected
Protected access flag.
|
static int |
AccPublic
Public access flag.
|
static int |
AccStatic
Static access flag.
|
static int |
AccSuper
Super property flag.
|
static int |
AccVarargs
=
Varargs method property
Used to flag variable arity method declarations.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isAbstract(int flags)
Returns whether the given integer includes the
abstract modifier. |
static boolean |
isDeprecated(int flags)
Returns whether the given integer includes the indication that the
element is deprecated (
@deprecated tag in jsdoc comment). |
static boolean |
isPackageDefault(int flags) |
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 |
isStatic(int flags)
Returns whether the given integer includes the
static modifier. |
static boolean |
isSuper(int flags)
Returns whether the given integer includes the
super modifier. |
static boolean |
isVarargs(int flags) |
static java.lang.String |
toString(int flags)
Returns a standard string describing the given modifier flags.
|
public static final int AccDefault
public static final int AccPublic
public static final int AccPrivate
public static final int AccProtected
public static final int AccStatic
public static final int AccAbstract
public static final int AccSuper
public static final int AccDeprecated
public static final int AccVarargs
public static boolean isAbstract(int flags)
abstract
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flagstrue
if the abstract
modifier is includedpublic static boolean isDeprecated(int flags)
@deprecated
tag in jsdoc comment).flags
- the flagstrue
if the element is marked as deprecatedpublic static boolean isPackageDefault(int flags)
public static boolean isPrivate(int flags)
private
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flagstrue
if the private
modifier is includedpublic static boolean isProtected(int flags)
protected
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flagstrue
if the protected
modifier is includedpublic static boolean isPublic(int flags)
public
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
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 isSuper(int flags)
super
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flagstrue
if the super
modifier is includedpublic static boolean isVarargs(int flags)
public static java.lang.String toString(int flags)
The flags are output in the following order:
public
protected
private
static
abstract
final
native
synchronized
transient
volatile
strictfp
Examples results:
"public static final"
"private native"
flags
- the flagsCopyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.