javassist.bytecode
Class AccessFlag
public
class
AccessFlag
extends Object
A support class providing static methods and constants
for access modifiers such as public, rivate, ...
Method Summary |
static int | clear(int accflags, int clearBit)
Clears a specified bit in accflags . |
static boolean | isPackage(int accflags)
Returns true if the access flags include neither public, protected,
or private. |
static boolean | isPrivate(int accflags)
Returns true if the access flags include the private bit. |
static boolean | isProtected(int accflags)
Returns true if the access flags include the protected bit. |
static boolean | isPublic(int accflags)
Returns true if the access flags include the public bit. |
static int | of(int modifier)
Converts a javassist.Modifier into
a javassist.bytecode.AccessFlag.
|
static int | setPackage(int accflags)
Clears the public, protected, and private bits. |
static int | setPrivate(int accflags)
Truns the private bit on. |
static int | setProtected(int accflags)
Truns the protected bit on. |
static int | setPublic(int accflags)
Truns the public bit on. |
static int | toModifier(int accflags)
Converts a javassist.bytecode.AccessFlag
into a javassist.Modifier.
|
public static final int ABSTRACT
public static final int ANNOTATION
public static final int BRIDGE
public static final int ENUM
public static final int FINAL
public static final int INTERFACE
public static final int NATIVE
public static final int PRIVATE
public static final int PROTECTED
public static final int PUBLIC
public static final int STATIC
public static final int STRICT
public static final int SUPER
public static final int SYNCHRONIZED
public static final int SYNTHETIC
public static final int TRANSIENT
public static final int VARARGS
public static final int VOLATILE
public static int clear(int accflags, int clearBit)
Clears a specified bit in accflags
.
public static boolean isPackage(int accflags)
Returns true if the access flags include neither public, protected,
or private.
public static boolean isPrivate(int accflags)
Returns true if the access flags include the private bit.
public static boolean isProtected(int accflags)
Returns true if the access flags include the protected bit.
public static boolean isPublic(int accflags)
Returns true if the access flags include the public bit.
public static int of(int modifier)
Converts a javassist.Modifier into
a javassist.bytecode.AccessFlag.
Parameters: modifier javassist.Modifier
public static int setPackage(int accflags)
Clears the public, protected, and private bits.
public static int setPrivate(int accflags)
Truns the private bit on. The protected and private bits are
cleared.
public static int setProtected(int accflags)
Truns the protected bit on. The protected and public bits are
cleared.
public static int setPublic(int accflags)
Truns the public bit on. The protected and private bits are
cleared.
public static int toModifier(int accflags)
Converts a javassist.bytecode.AccessFlag
into a javassist.Modifier.
Parameters: accflags javassist.bytecode.Accessflag
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.