Reconnaissance of JBuilder2005 reconstruction before reconstruction

Source: Internet
Author: User

There is an English proverb called "Looking before you jump", it is a good idea to look at the influence of this change before proceeding with refactoring.

1. View definition

Program classes are called to each other, JBuilder can facilitate you to view the definition of class, method, range, place the cursor on a code element, press Ctrl+enter shortcut key or right-click, in the pop-up menu select Find Definition, JBuilder is positioned at the location of the element.

2. View References

After the class, method, and domain are defined, the reference to the star is sprinkled in different parts of the program, and viewing the definition is like "wandering the roots", while the view reference is just the opposite, that is, to find all references to the element from the element definition. Place the cursor at the element definition, press Ctrl+shift+enter or both by right-clicking the menu, select Find References,jbuilder to list all references in the project in the information pane, as shown in the following illustration:

Figure 3 Referencing Lookup results

References are organized in a tree-like manner, and these references are grouped by a class, where the reference is specific. The following table lists the descriptions of the icons that are involved in the tree:
Table 2 Query Reference structure icon description

icon description /td>
class, inner class, interface 1) 2) type reference: a class declaration or an instantiation of a class object.
3) inheritance type reference: The current class descendant class or where these subclasses are referenced.
4) Member reference: a member of the current class.
5) descendants class member references: Members of the current class of descendants.
method, constructor 1) statement: the current method declaration.
2) direct call: called through Class object instance.
3) indirect invocation: indirect invocation through the parent class or subclass object instance.
domain, local variable 1 src = "Yun_qi_img/1320212047-9.gif" alt= "JBuilder2005 to realize the reconstruction of the reconnaissance-jbuilder website" "> write: Change the domain or local variables.
2)

In addition to being able to view references within the scope of the project, you can view the reference relationships within the current class scope: Right-click at the element definition and select the Find Local References menu item in the pop-up menu.

3, view the Coverage method

In the implementation class of a subclass or interface, position the cursor at the overlay method, right-click, and select Find overridden method in the pop-up menu to see the Ancestor class methods overridden by the current method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.