Packages

package info

Contains standalone tools/analyses that provide general, coarse-grained information about Java projects and the current runtime environment. The tools range from very trivial and fast to (more) complex analyses.

The tools in this package primarily serve the comprehension of a given code base; tools that primarily serve the debugging of OPAL or analyses developed on top of OPAL are stored in the org.opalj.support.debug package.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. info
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. object CallGraph extends ProjectAnalysisApplication

    Computes a call graph and reports its size.

    Computes a call graph and reports its size.

    You can specify the call-graph algorithm: -algorithm=CHA for an CHA-based call graph -algorithm=RTA for an RTA-based call graph -algorithm=PointsTo for a points-to based call graph The default algorithm is RTA.

    Please also specify whether the target (-cp=) is an application or a library using "-projectConfig=". Predefined configurations ApplicationProject.conf or LibraryProject.conf can be used here.

    Furthermore, it can be used to print the callees or callers of specific methods. To do so, add -callers=m, where m is the method name/signature using Java notation, as parameter (for callees use -callees=m).

  2. object ClassUsageAnalysis extends ProjectAnalysisApplication

    Analyzes a project for how a particular class is used within that project.

    Analyzes a project for how a particular class is used within that project. Collects information on which methods are called on objects of that class as well as how often.

    The analysis can be configured by passing the following parameters: class (the class to analyze) and granularity (fine or coarse; defines which information will be gathered by an analysis run; this parameter is optional). For further information see ClassUsageAnalysis.analysisSpecificParametersDescription.

  3. object FieldLocality extends ProjectAnalysisApplication

    Computes the field locality; see org.opalj.br.fpcf.properties.FieldLocality for details.

  4. object FieldMutability extends ProjectAnalysisApplication

    Computes the field mutability; see org.opalj.br.fpcf.properties.FieldMutability for details.

  5. object ImmutabilityAnalysis extends ProjectAnalysisApplication

    Determines the immutability of the classes of a project.

  6. object MaxLocalsEvaluation extends ProjectAnalysisApplication

    Computes some statistics related to the number of parameters and locals (Local Variables/Registers) defined/specified by each method.

  7. object PureVoidMethods extends ProjectAnalysisApplication

    Identifies pure/side-effect free methods with a void return type.

  8. object Purity

    Executes a purity analysis (L2 by default) along with necessary supporting analysis.

  9. object ReturnValueFreshness extends ProjectAnalysisApplication

    Computes return value freshness information; see org.opalj.br.fpcf.properties.ReturnValueFreshness for details.

  10. object StringConstants extends ProjectAnalysisApplication

    Prints out all string constants found in the bytecode.

  11. object ThrownExceptions extends ProjectAnalysisApplication

    Prints out the information about the exceptions thrown by methods.

  12. object UnusedResults extends ProjectAnalysisApplication

    Identifies calls to pure/side-effect free methods where the results are not used subsequently.

  13. object Values extends ProjectAnalysisApplication

    Computes information regarding the values stored in fields and returned by methods.

Inherited from AnyRef

Inherited from Any

Ungrouped