Imagix 4D User Guide

Analyzing Your Java Code

While Imagix 4D can collect information from a number of software artifacts in your system, the most significant of these are your source code files themselves. The process of analyzing these source files is handled by the Imagix 4D analyzers. The C/C++ analyzer is described in an earlier section. Here, the analyzer for Java code is described.

The Imagix 4D Java analyzer operates much like a compiler. Like a compiler, it does a full semantic parsing of your source files, analyzing all the symbols in your code. But whereas a compiler generates object files which get built into an executable by the linker, the Imagix 4D analyzers generate data files which are loaded and integrated with the other datafiles by the Imagix 4D database.

The Imagix 4D Java analyzer supports the Second Edition and Third Edition of the Java specification. It can analyze Java source files, class files, and jar files. From class files, it extracts only declarative information, and not method bodies or initializer expressions. If a jar file is specified as input, then the analyzer extracts declarative information for all class files in the jar file. This is true for uncompressed and zlib-compressed class files in the jar files. No other compressions are supported.

The Imagix 4D Java analyzer is an independent executable, and can be invoked via command line, according the analyzer's syntax. Normally, however, the invocation is controlled from inside of the Imagix 4D user interface in order to simplify operation. For step-by-step instructions for creating a project and analyzing your code, see the Getting Started section of this User Guide. In this current section, you will find reference materials and advanced topics in applying the Java analyzer.