Elements of Java objects and member accessibility


Subtrees of each Java object represent the hierarchy of elements. Java objects typically contain at least one class that contains elements such as constructors, methods, variables and inner classes. You can set behavior properties for each of these elements.

Table 5: Java Object Elements
Icon
Elements
Properties
Class, Inner class
Name, modifiers, extended class, implemented interfaces
Interface, Inner interface
Name, modifiers, extended interfaces
Constructor
Name, modifiers, arguments, exceptions
Method (non-static)
Like constructor, plus return type
Method (static)
Like constructor, plus return type
Variable (non-static)
Name, modifiers, type, initial value
Variable (static)
Name, modifiers, type, initial value
Initializer (non-static)
Initializer (static)

Member accessibility

The elements listed above can have several kinds of accessibility. The icons of the elements consist of icons in the previous table and their accessibility flag(s).

Table 6: Icons for accessibility
Icon
Access
private
package private (default)
protected
public

Contents Prev Next Index