Login | Register
My pages Projects Community openCollabNet

Package jmt.codebase

Provides support for representing classes and class elements and analysing *.java and *.class stream resources.

See:
          Description

Interface Summary
ArrayReference Describes an array reference containing the array-type and dimension.
Attribute Describes an attribute which can be added to a class, an interface, a method or a field.
Class The Class type describes an ordinary java class and extends the possibilities of the ClassOrInterface type.
ClassElement Describes a class element of a class.
ClassElements Describes a collection of various class elements like fields and methods.
ClassName Describes a name of a class or interface.
ClassOrInterface Base-type of the Class and Interface types.
ClassReference Describes a reference to a class or an interface.
CodeBase Describes the CodeBase type able to read and analyse a class or java source and collecting the analysed classes.
Field Describes a field of a class.
FieldOrMethodReference Describes the shared aspects of a field reference and a method reference.
FieldReference Describes a reference of a field belonging to a class or interface.
Interface Describes an analysed interface.
LinesOfCodeAttribute Describes an attribute containing the count of lines used to define classes, interfaces, methods or fields using a java-source.
Method Describes the apsects of an analysed method belonging to a class or an interface.
MethodParameters Describes the parameter signature of a method (or a parameter block).
MethodReference Describes the aspects of a reference of a method.
Modifier Describes a modifier of a class, interface, method or field.
Reference Describes a reference.
ReferenceManager Describes a reference manager containing references of the ClassReference, the FieldReference and the MethodReference type.
ResourceAnalysationFacility Describes a resource analysation facility used to analyse a resource describing a class or interface.
ResourceAnalysationFacilityListener Describes a listener for the ResourceAnalysationFacility type.
UsedReferencesAttribute Describes an attribute containing the used classes and interfaces, the used fields and the used methods of a class or interface.
 

Class Summary
AttributeFactory A static factory providing methods to create various Attribute instances.
ClassFactory A static factory providing methods to create Class, Interface, Field, Method, ClassElements and MethodParameters instances.
ClassNameFactory A static factory providing methods to create ClassName instances.
CodeBaseFactory A static factory providing methods to create CodeBase instances.
ReferenceFactory A static factory providing methods to create instances of the ClassReference, ArrayReference, FieldReference or MethodReference type.
 

Exception Summary
AnalysationException The AnalysationException indicates an error in a analysating phase.
 

Package jmt.codebase Description

Provides support for representing classes and class elements and analysing *.java and *.class stream resources.

The CodeBase is a class collection of analysed classes. An instance of CodeBase can be created using the CodeBaseFactory.createCodeBase() method.

A class is described by the Class type and an interface is represented by the Interface type. A class may implement interfaces while a interface may extend more then one interface. But both may contain methods as well attributes (referred as fields).

A method is described by the Method type and an field is described by the Field type.

To add a resource to a CodeBase object the resource should be specified by creating a instance of the Resources type. A bundle resources may be a directory, a archive, a list of files, a file containing a list of files or a single file. A Resources instance may be created using the ResourceFactory.

See Also:
CodeBase, CodeBaseFactory.createCodeBase(), Class, Interface, Method, Field, Resource, Resources, ResourceFactory