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.
- Alphabetic
- By Inheritance
- info
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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.conforLibraryProject.confcan 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).
-
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) andgranularity(fine or coarse; defines which information will be gathered by an analysis run; this parameter is optional). For further information see ClassUsageAnalysis.analysisSpecificParametersDescription. -
object
FieldLocality extends ProjectAnalysisApplication
Computes the field locality; see org.opalj.br.fpcf.properties.FieldLocality for details.
-
object
FieldMutability extends ProjectAnalysisApplication
Computes the field mutability; see org.opalj.br.fpcf.properties.FieldMutability for details.
-
object
ImmutabilityAnalysis extends ProjectAnalysisApplication
Determines the immutability of the classes of a project.
-
object
MaxLocalsEvaluation extends ProjectAnalysisApplication
Computes some statistics related to the number of parameters and locals (Local Variables/Registers) defined/specified by each method.
-
object
PureVoidMethods extends ProjectAnalysisApplication
Identifies pure/side-effect free methods with a void return type.
-
object
Purity
Executes a purity analysis (L2 by default) along with necessary supporting analysis.
-
object
ReturnValueFreshness extends ProjectAnalysisApplication
Computes return value freshness information; see org.opalj.br.fpcf.properties.ReturnValueFreshness for details.
-
object
StringConstants extends ProjectAnalysisApplication
Prints out all string constants found in the bytecode.
-
object
ThrownExceptions extends ProjectAnalysisApplication
Prints out the information about the exceptions thrown by methods.
-
object
UnusedResults extends ProjectAnalysisApplication
Identifies calls to pure/side-effect free methods where the results are not used subsequently.
-
object
Values extends ProjectAnalysisApplication
Computes information regarding the values stored in fields and returned by methods.