Notice: This class should be named IClass.IModifier, but changing the name would break existing client
code. Thus it won't be renamed until there's a really good reason to do it (maybe with a major design change).
| Modifier and Type | Field and Description |
|---|---|
| public static final short | |
| public static final short | ANNOTATION
This flag is set on annotation types (including nested annotation types), and requires that |
| public static final short | BRIDGE
This flag is set on 'bridge methods' generated by the compiler. |
| public static final short | |
| public static final short | |
| public static final short | |
| public static final short | |
| public static final short | NONE
An alias for '0' -- no modifiers. |
| public static final short | PACKAGE
The flag indicating 'default accessibility' a.k.a. 'package accessibility' of the modified element. |
| public static final short | PPP
The mask to select the accessibility flags from modifiers. |
| public static final short | PRIVATE
The flag indicating 'private accessibility' of the modified element. |
| public static final short | PROTECTED
The flag indicating 'protected accessibility' of the modified element. |
| public static final short | PUBLIC
The flag indicating 'public accessibility' of the modified element. |
| public static final short | STATIC
This flag is set on class or interface initialization methods, STATIC class fields, all interface fields, STATIC methods, and STATIC nested classes. |
| public static final short | |
| public static final short | SUPER
This flag is always set on classes, and never set on any other element. |
| public static final short | SYNCHRONIZED
This flag is set on SYNCHRONIZED methods. |
| public static final short | SYNTHETIC
This flag is set on classes, methods and fields that were generated by the compiler and do not appear in the source code. |
| public static final short | TRANSIENT
This flag is set on TRANSIENT fields. |
| public static final short | VARARGS
This flag is set on 'variable arity' (a.k.a. 'varargs') methods and constructors. |
| public static final short |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static short | Returns: The given modifiers, but with the accessibility part changed to newAccess
|
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: Whether the given modifier symbolizesPACKAGE (a.k.a. 'default') accessibility
|
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean |
| ABSTRACT | back to summary |
|---|---|
| public static final short ABSTRACT This flag is set on all interfaces, ABSTRACT classes and ABSTRACT methods, and is mutually exclusive with
| |
| ANNOTATION | back to summary |
|---|---|
| public static final short ANNOTATION This flag is set on annotation types (including nested annotation types), and requires that | |
| BRIDGE | back to summary |
|---|---|
| public static final short BRIDGE This flag is set on 'bridge methods' generated by the compiler. Notice that it has the same value as | |
| ENUM | back to summary |
|---|---|
| public static final short ENUM This flag is set on enumerated types (including nested enumerated types) and enumerated types' elements, and is
mutually exclusive with | |
| FINAL | back to summary |
|---|---|
| public static final short FINAL This flag is set on FINAL classes, FINAL fields and FINAL methods, and is mutually exclusive with | |
| INTERFACE | back to summary |
|---|---|
| public static final short INTERFACE This flag is set on interfaces (including nested interfaces), and requires that | |
| NATIVE | back to summary |
|---|---|
| public static final short NATIVE This flag is set on NATIVE methods, and is mutually exclusive with | |
| NONE | back to summary |
|---|---|
| public static final short NONE An alias for '0' -- no modifiers. | |
| PACKAGE | back to summary |
|---|---|
| public static final short PACKAGE The flag indicating 'default accessibility' a.k.a. 'package accessibility' of the modified element.
| |
| PPP | back to summary |
|---|---|
| public static final short PPP The mask to select the accessibility flags from modifiers. | |
| PRIVATE | back to summary |
|---|---|
| public static final short PRIVATE The flag indicating 'private accessibility' of the modified element.
| |
| PROTECTED | back to summary |
|---|---|
| public static final short PROTECTED The flag indicating 'protected accessibility' of the modified element.
| |
| PUBLIC | back to summary |
|---|---|
| public static final short PUBLIC The flag indicating 'public accessibility' of the modified element. Methods of interfaces are always
| |
| STATIC | back to summary |
|---|---|
| public static final short STATIC This flag is set on class or interface initialization methods, STATIC class fields, all interface fields, STATIC methods, and STATIC nested classes. | |
| STRICTFP | back to summary |
|---|---|
| public static final short STRICTFP This flag is set on STRICTFP methods, and is mutually exclusive with | |
| SUPER | back to summary |
|---|---|
| public static final short SUPER This flag is always set on classes, and never set on any other element. Notice that it has the same value as
| |
| SYNCHRONIZED | back to summary |
|---|---|
| public static final short SYNCHRONIZED This flag is set on SYNCHRONIZED methods. Notice that it has the same value as | |
| SYNTHETIC | back to summary |
|---|---|
| public static final short SYNTHETIC This flag is set on classes, methods and fields that were generated by the compiler and do not appear in the source code. | |
| TRANSIENT | back to summary |
|---|---|
| public static final short TRANSIENT This flag is set on TRANSIENT fields. Notice that it has the same value as | |
| VARARGS | back to summary |
|---|---|
| public static final short VARARGS This flag is set on 'variable arity' (a.k.a. 'varargs') methods and constructors. Notice that it has the same
value as | |
| VOLATILE | back to summary |
|---|---|
| public static final short VOLATILE This flag is set on VOLATILE fields and is mutually exclusive with | |
| Mod | back to summary |
|---|---|
| private Mod() | |
| changeAccess | back to summary |
|---|---|
public static short changeAccess(short modifiers, short newAccess)
| |
| isAbstract | back to summary |
|---|---|
public static boolean isAbstract(short sh)
| |
| isAnnotation | back to summary |
|---|---|
public static boolean isAnnotation(short sh)
| |
| isBridge | back to summary |
|---|---|
public static boolean isBridge(short sh)
| |
| isEnum | back to summary |
|---|---|
public static boolean isEnum(short sh)
| |
| isFinal | back to summary |
|---|---|
public static boolean isFinal(short sh)
| |
| isInterface | back to summary |
|---|---|
public static boolean isInterface(short sh)
| |
| isNative | back to summary |
|---|---|
public static boolean isNative(short sh)
| |
| isPackageAccess | back to summary |
|---|---|
public static boolean isPackageAccess(short sh)
| |
| isPrivateAccess | back to summary |
|---|---|
public static boolean isPrivateAccess(short sh)
| |
| isProtectedAccess | back to summary |
|---|---|
public static boolean isProtectedAccess(short sh)
| |
| isPublicAccess | back to summary |
|---|---|
public static boolean isPublicAccess(short sh)
| |
| isStatic | back to summary |
|---|---|
public static boolean isStatic(short sh)
| |
| isStrictfp | back to summary |
|---|---|
public static boolean isStrictfp(short sh)
| |
| isSuper | back to summary |
|---|---|
public static boolean isSuper(short sh)
| |
| isSynchronized | back to summary |
|---|---|
public static boolean isSynchronized(short sh)
| |
| isSynthetic | back to summary |
|---|---|
public static boolean isSynthetic(short sh)
| |
| isTransient | back to summary |
|---|---|
public static boolean isTransient(short sh)
| |
| isVarargs | back to summary |
|---|---|
public static boolean isVarargs(short sh)
| |
| isVolatile | back to summary |
|---|---|
public static boolean isVolatile(short sh)
| |