public class Modifier extends Object
javassist.bytecode.AccessFlag.
 All the methods/constants in this class are compatible with
 ones in java.lang.reflect.Modifier.
CtClass.getModifiers()| Modifier and Type | Field and Description | 
|---|---|
| static int | ABSTRACT | 
| static int | ANNOTATION | 
| static int | ENUM | 
| static int | FINAL | 
| static int | INTERFACE | 
| static int | NATIVE | 
| static int | PRIVATE | 
| static int | PROTECTED | 
| static int | PUBLIC | 
| static int | STATIC | 
| static int | STRICT | 
| static int | SYNCHRONIZED | 
| static int | TRANSIENT | 
| static int | VARARGS | 
| static int | VOLATILE | 
| Constructor and Description | 
|---|
| Modifier() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | clear(int mod,
     int clearBit)Clears a specified bit in  mod. | 
| static boolean | isAbstract(int mod)Returns true if the modifiers include the abstract
 modifier. | 
| static boolean | isAnnotation(int mod)Returns true if the modifiers include the annotation
 modifier. | 
| static boolean | isEnum(int mod)Returns true if the modifiers include the enum
 modifier. | 
| static boolean | isFinal(int mod)Returns true if the modifiers include the final
 modifier. | 
| static boolean | isInterface(int mod)Returns true if the modifiers include the interface
 modifier. | 
| static boolean | isNative(int mod)Returns true if the modifiers include the native
 modifier. | 
| static boolean | isPackage(int mod)Returns true if the modifiers do not include either
 public, protected, or private. | 
| static boolean | isPrivate(int mod)Returns true if the modifiers include the private
 modifier. | 
| static boolean | isProtected(int mod)Returns true if the modifiers include the protected
 modifier. | 
| static boolean | isPublic(int mod)Returns true if the modifiers include the public
 modifier. | 
| static boolean | isStatic(int mod)Returns true if the modifiers include the static
 modifier. | 
| static boolean | isStrict(int mod)Returns true if the modifiers include the strictfp
 modifier. | 
| static boolean | isSynchronized(int mod)Returns true if the modifiers include the synchronized
 modifier. | 
| static boolean | isTransient(int mod)Returns true if the modifiers include the transient
 modifier. | 
| static boolean | isVolatile(int mod)Returns true if the modifiers include the volatile
 modifier. | 
| static int | setPackage(int mod)Clears the public, protected, and private bits. | 
| static int | setPrivate(int mod)Truns the private bit on. | 
| static int | setProtected(int mod)Truns the protected bit on. | 
| static int | setPublic(int mod)Truns the public bit on. | 
| static String | toString(int mod)Return a string describing the access modifier flags in
 the specified 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 VARARGS
public static final int TRANSIENT
public static final int NATIVE
public static final int INTERFACE
public static final int ABSTRACT
public static final int STRICT
public static final int ANNOTATION
public static final int ENUM
public static boolean isPublic(int mod)
public static boolean isPrivate(int mod)
public static boolean isProtected(int mod)
public static boolean isPackage(int mod)
public static boolean isStatic(int mod)
public static boolean isFinal(int mod)
public static boolean isSynchronized(int mod)
public static boolean isVolatile(int mod)
public static boolean isTransient(int mod)
public static boolean isNative(int mod)
public static boolean isInterface(int mod)
public static boolean isAnnotation(int mod)
public static boolean isEnum(int mod)
public static boolean isAbstract(int mod)
public static boolean isStrict(int mod)
public static int setPublic(int mod)
public static int setProtected(int mod)
public static int setPrivate(int mod)
public static int setPackage(int mod)
public static int clear(int mod,
                        int clearBit)
mod.public static String toString(int mod)
mod - modifier flags.Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.