
Its purpose is to aid in identifying overly complex areas of source code. The Complexity Profile Graph (CPG) is a unique statement-level complexity diagram. Multiple viewers can be combined on a single viewer canvas window and the contents can be saved to file. Other viewers show, for example, a color swatch for a Color, the image for an icon, and the binary details of a double. Common data structures are automatically identified and displayed structurally.

In data structure viewers, one element or sub-element, such as an element of a linked list or a key or value in a hash table, may be selected and will be displayed in a "sub viewer", or they can be dragged out as separate viewers. The result is animated when changes occur, as when a node is added to a linked list. Structural views of linked data structures display local variable nodes and their relation to the main structure. Structural views show the internal structure of trees, linked lists, hash tables, etc. For example, a content-based view shows ArrayList and LinkedList in an identical way, as a list of elements. Often these views are more useful than the traditional tree view showing the fields of each object. The Java object viewers in jGRASP provide interface-based, structural, and other views of data structures and other objects and primitives during debugging and workbench operations.
#Jgrasp com code#
The editing window provides CSD-based folding and a "context hint" feature that displays the first line of a code structure that is off-screen when the mouse is hovered over its CSD structure. They are generated at a speed that makes the process effectively instantaneous (50,000 loc per second or faster on modern hardware). CSDs in jGRASP are integrated into the source code editing windows, and can be regenerated on demand. jGRASP produces CSDs for Java, C, C++, Objective-C, Ada, and VHDL. Its purpose is to improve the readability of source code. The Control Structure Diagram (CSD) is a control flow diagram that fits into the space normally taken by indentation in source code.
