|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.core.Flags
public final class Flags
Utility class for decoding modifier flags in JavaScript elements.
This class provides static methods only; it is not intended to be instantiated or subclassed by clients.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Field Summary | |
---|---|
static int |
AccAbstract
Abstract property flag. |
static int |
AccAnnotation
|
static int |
AccBridge
|
static int |
AccDefault
Constant representing the absence of any flag |
static int |
AccDeprecated
Deprecated property flag. |
static int |
AccEnum
|
static int |
AccFinal
|
static int |
AccInterface
Interface property flag. |
static int |
AccNative
|
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 |
AccStrictfp
Strictfp property flag. |
static int |
AccSuper
Super property flag. |
static int |
AccSynchronized
|
static int |
AccSynthetic
|
static int |
AccTransient
|
static int |
AccVarargs
= Varargs method property Used to flag variable arity method declarations. |
static int |
AccVolatile
|
Method Summary | |
---|---|
static boolean |
isAbstract(int flags)
Returns whether the given integer includes the abstract modifier. |
static boolean |
isAnnotation(int flags)
|
static boolean |
isBridge(int flags)
|
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 |
isEnum(int flags)
|
static boolean |
isFinal(int flags)
|
static boolean |
isInterface(int flags)
Returns whether the given integer includes the interface modifier. |
static boolean |
isNative(int flags)
|
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 |
isStrictfp(int flags)
|
static boolean |
isSuper(int flags)
Returns whether the given integer includes the super modifier. |
static boolean |
isSynchronized(int flags)
|
static boolean |
isSynthetic(int flags)
|
static boolean |
isTransient(int flags)
|
static boolean |
isVarargs(int flags)
|
static boolean |
isVolatile(int flags)
|
static java.lang.String |
toString(int flags)
Returns a standard string describing the given modifier flags. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 AccFinal
public static final int AccSynchronized
public static final int AccVolatile
public static final int AccTransient
public static final int AccNative
public static final int AccInterface
public static final int AccAbstract
public static final int AccStrictfp
public static final int AccSuper
public static final int AccSynthetic
public static final int AccDeprecated
public static final int AccBridge
public static final int AccVarargs
public static final int AccEnum
public static final int AccAnnotation
Method Detail |
---|
public static boolean isAbstract(int flags)
abstract
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flags
true
if the abstract
modifier is includedpublic static boolean isDeprecated(int flags)
@deprecated
tag in jsdoc comment).
flags
- the flags
true
if the element is marked as deprecatedpublic static boolean isFinal(int flags)
public static boolean isInterface(int flags)
interface
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flags
true
if the interface
modifier is includedpublic static boolean isNative(int flags)
public 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 flags
true
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 flags
true
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 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 isSuper(int flags)
super
modifier.
Note: This Method only applies to ECMAScript 4 which is not yet supported
flags
- the flags
true
if the super
modifier is includedpublic static boolean isStrictfp(int flags)
public static boolean isSynchronized(int flags)
public static boolean isSynthetic(int flags)
public static boolean isTransient(int flags)
public static boolean isVolatile(int flags)
public static boolean isBridge(int flags)
public static boolean isVarargs(int flags)
public static boolean isEnum(int flags)
public static boolean isAnnotation(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 flags
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |