Introduction
This page is a code analysis report about Velocity auto-generated by XDepend.
In this report, you will find useful project metrics about the 1.6.2 release of Velocity such as the most used types.
This report detailled also what has changed since the previous release 1.6.1 and also the evolution between abstractness and instability.
You may also leave comments to point out more information about this release
To get explanations concerning these metrics, go to the XDepend home page.
About this report
- Application name:
- Velocity
- Releases:
- 1.6.2, 1.6.1
- Published:
- 09/30/2009 16:11:40
- Credit:
- XDepend 1.0.1 (Pro Edition)
Project Metrics
- Number of jars:
- 1
- Number of types:
- 261
- Number of classes:
- 221
- Number of abstract classes:
- 15
- Number of interfaces:
- 40
- Number of value types:
- 0
- Number of exception classes:
- 5
- Number of attribute classes:
- 0
- Number of delegate classes:
- 0
- Number of enumerations classes:
- 0
- Number of generic type definitions:
- 0
- Number of generic method definitions:
- 0
- Number of IL instructions:
- 56692
- Percentage of public types:
- 92.72%
- Percentage of public methods:
- 79.21%
- Percentage of classes with at least one public field:
- 9.2%
| Stat | Occurrences | Avg | StdDev | Max |
|---|---|---|---|---|
| Properties on Interfaces | 40 Interfaces | 0 | 0 | 0 properties on org.apache.velocity.app.event.MethodExceptionEventHandler |
| Methods on Interfaces | 40 Interfaces | 5.32 | 9.31 | 41 methods on org.apache.velocity.runtime.parser.node.ParserVisitor |
| Arguments on Methods on Interfaces | 213 Methods | 1.26 | 1.12 | 5 arguments on org.apache.velocity.app.event.InvalidReferenceEventHandler.invalidMethod(Context,String,Object,String,Info) |
| Public Properties on Classes | 221 Classes | 0.32 | 1.02 | 6 public properties on org.apache.velocity.context.InternalContextBase |
| Public Methods on Classes | 221 Classes | 6.82 | 8.23 | 50 public methods on org.apache.velocity.runtime.parser.Parser |
| Arguments on Public Methods on Classes | 1507 Methods | 1.23 | 1.12 | 7 arguments on org.apache.velocity.runtime.parser.TokenMgrError.TokenMgrError(boolean,int,int,int,String,char,int) |
| BC Instructions in non-abstract Methods | 1940 Methods | 29.22 | 89.16 | 1917 BC instructions in org.apache.velocity.runtime.parser.ParserTokenManager.jjMoveNfa_0(int,int) |
| Cyclomatic complexity on non abstract Methods | 1940 Methods | 3.73 | 15.62 | CC = 407 for org.apache.velocity.runtime.parser.ParserTokenManager.jjMoveNfa_0(int,int) |
Jars Metrics
| Jar | # Types | # Abstract Types | # BC Inst | Afferent Coupling | Efferent Coupling | Relational Cohesion | Instability | Abstractness | Distance |
|---|---|---|---|---|---|---|---|---|---|
| velocity v1.0 | 261 | 55 | 56692 | 0 | 152 | 5.11 | 1 | 0.21 | 0.21 |
Abstractness Versus Instability
![]() | ![]() |
| Current | Previous |
What happened since the previous release
Here is an overview of what has changed between the two versions analyzed. You can click on a line to have the full list of elements matching the rule.
Methods removed : 0% (3/2754)
WARN IF Count > 0 IN SELECT METHODS WHERE WasRemoved
- org.apache.velocity.runtime.parser.Parser.jj_la1_init_1()
- org.apache.velocity.runtime.parser.Parser.jj_la1_init_0()
- org.apache.velocity.runtime.parser.Parser.jj_la1_init_2()
Types Metrics
TypeRank values are computed by applying the Google PageRank algorithm on the graph of types' dependencies. A homothety of center 0.15 is applied to make it so that the average of TypeRank is 1.
Types with high TypeRank should be more carefully tested because bugs in such types will likely be more catastrophic. It is a value calculated only by XDepend
| Rank | Type | Namespace |
|---|---|---|
| 6.86 | Log | org.apache.velocity.runtime.log |
| 6.17 | RuntimeServices | org.apache.velocity.runtime |
| 5.96 | InternalContextAdapter | org.apache.velocity.context |
| 5.55 | SimpleNode | org.apache.velocity.runtime.parser.node |
| 5.47 | Context | org.apache.velocity.context |
| 5.36 | Parser | org.apache.velocity.runtime.parser |
| 4.5 | ParserVisitor | org.apache.velocity.runtime.parser.node |
| 4.31 | VelocityException | org.apache.velocity.exception |
| 3.95 | Node | org.apache.velocity.runtime.parser.node |
| 3.66 | MethodInvocationException | org.apache.velocity.exception |
| 3.12 | ResourceNotFoundException | org.apache.velocity.exception |
| 2.74 | Token | org.apache.velocity.runtime.parser |
| 2.59 | ParseErrorException | org.apache.velocity.exception |
| 2.54 | Info | org.apache.velocity.util.introspection |






