Home » openjdk-7 » com.sun » jdi » [javadoc | source]
com.sun.jdi
public interface: Accessible [javadoc | source] Provides information on the accessibility of a type or type component. Mirrors for program elements which allow an an access specifier (private, protected, public) provide information on that part of the declaration through this interface.
Method from com.sun.jdi.Accessible Summary:
isPackagePrivate,   isPrivate,   isProtected,   isPublic,   modifiers
Method from com.sun.jdi.Accessible Detail:
 public boolean isPackagePrivate()
    Determines if this object mirrors a package private item. A package private item is declared with no access specifier. For ArrayType , the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE , the return value is always false.
 public boolean isPrivate()
    Determines if this object mirrors a private item. For ArrayType , the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE , the return value is always false.
 public boolean isProtected()
    Determines if this object mirrors a protected item. For ArrayType , the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE , the return value is always false.
 public boolean isPublic()
    Determines if this object mirrors a public item. For ArrayType , the return value depends on the array component type. For primitive arrays the return value is always true. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE , the return value is always true.
 public int modifiers()
    Returns the JavaTM programming language modifiers, encoded in an integer.

    The modifier encodings are defined in The Java™ Virtual Machine Specification in the access_flag tables for classes(section 4.1), fields(section 4.5), and methods(section 4.6).