|
JavaScript Development Tools Release 3.2 |
|||||||||
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 |
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. |
Method Summary | |
---|---|
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 String |
toString(int flags)
Returns a standard string describing the given modifier flags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 AccAbstract
public static final int AccSuper
public static final int AccDeprecated
public static final int AccVarargs
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 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 isVarargs(int flags)
public static 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
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |