public final class ModifierSet
extends java.lang.Object
Modifier
constants.Modifier and Type | Field and Description |
---|---|
static int |
ABSTRACT |
static int |
FINAL |
static int |
NATIVE |
static int |
PRIVATE |
static int |
PROTECTED |
static int |
PUBLIC |
static int |
STATIC |
static int |
STRICTFP |
static int |
SYNCHRONIZED |
static int |
TRANSIENT |
static int |
VOLATILE |
Modifier and Type | Method and Description |
---|---|
static int |
addModifier(int modifiers,
int mod) |
static AccessSpecifier |
getAccessSpecifier(int modifiers) |
static boolean |
hasModifier(int modifiers,
int modifier) |
static boolean |
hasPackageLevelAccess(int modifiers)
Is the element accessible from within the package?
It is the level of access which is applied if no modifiers are chosen,
it is sometimes called "default".
|
static boolean |
isAbstract(int modifiers) |
static boolean |
isFinal(int modifiers) |
static boolean |
isNative(int modifiers) |
static boolean |
isPrivate(int modifiers) |
static boolean |
isProtected(int modifiers) |
static boolean |
isPublic(int modifiers) |
static boolean |
isStatic(int modifiers) |
static boolean |
isStrictfp(int modifiers) |
static boolean |
isSynchronized(int modifiers) |
static boolean |
isTransient(int modifiers) |
static boolean |
isVolatile(int modifiers) |
static int |
removeModifier(int modifiers,
int mod)
Removes the given modifier.
|
public static final int PUBLIC
public static final int PRIVATE
public static final int PROTECTED
public static final int STATIC
public static final int FINAL
public static final int SYNCHRONIZED
public static final int VOLATILE
public static final int TRANSIENT
public static final int NATIVE
public static final int ABSTRACT
public static final int STRICTFP
public static AccessSpecifier getAccessSpecifier(int modifiers)
public static int addModifier(int modifiers, int mod)
public static boolean hasModifier(int modifiers, int modifier)
public static boolean isAbstract(int modifiers)
public static boolean isFinal(int modifiers)
public static boolean isNative(int modifiers)
public static boolean isPrivate(int modifiers)
public static boolean isProtected(int modifiers)
public static boolean hasPackageLevelAccess(int modifiers)
modifiers
- indicatorpublic static boolean isPublic(int modifiers)
public static boolean isStatic(int modifiers)
public static boolean isStrictfp(int modifiers)
public static boolean isSynchronized(int modifiers)
public static boolean isTransient(int modifiers)
public static boolean isVolatile(int modifiers)
public static int removeModifier(int modifiers, int mod)
modifiers
- existing modifiersmod
- modifier to be removedCopyright © 2007-2015. All Rights Reserved.