![]() | Analysis of Class : org.junit.internal.matchers.TypeSafeMatcher (Includes summary list of methods in class) | Home |
Dashboard for Class : org.junit.internal.matchers.TypeSafeMatcher |
---|
![]() |
Cyclomatic Complexity |
Summary of TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | TypeSafeMatcher | - |
Number of Methods | 6 | - |
LCOM | 0.80 | - |
Average Cyclomatic Complexity | 1.50 | - |
Number of Statements | 23 | - |
Halstead Cumulative Bugs | 0.26 | - |
Halstead Effort | 7681.01 | - |
UnWeighted Class Size | 7 | - |
Instance Variables | 1 | expectedType (java.lang.Class) |
Imported Packages | 2 | java.lang.reflect.Method org.hamcrest.BaseMatcher |
Response For class | 6 | - |
CBO | 4 | - |
Maintainability Index | 168.53 | - |
Cumulative Number of Comment Lines | 15 | - |
Lines Of Code | 31 | - |
Fan In | 4 | - |
DIT | 1 | - |
Maintainability Index (NC) | 128.64 | - |
Specialization ratio | 3.00 | - |
Reuse Ratio | 0.20 | - |
COH | 0.33 | - |
Local Method Calls | 3 | isMatchesSafelyMethod (1) matchesSafely (1) findExpectedType (1) |
LCOM2 | 10.00 | - |
Max Complexity | 4 | - |
Halstead Cumulative Volume | 784.42 | - |
Hierarchy Method Calls | 1 | getClass (1) |
Number of Queries | 4 | - |
Fan Out | 0 | - |
SuperClass Name | org.hamcrest.BaseMatcher | - |
SIX | 0.00 | - |
External Method Calls | 0 | java.lang.Class.isInstance (1) java.lang.reflect.Method.getName (1) java.lang.Error.Error (1) getName().equals (1) method.getParameterTypes (1) java.lang.reflect.Method.isSynthetic (1) Class>.getSuperclass (1) java.lang.reflect.Method.getParameterTypes (1) Class>.getDeclaredMethods (1) |
Superclasses | 1 | org.hamcrest.BaseMatcher |
Total Complexity | 9 | - |
Subclasses | 3 | org.junit.internal.matchers.IsCollectionContaining org.junit.internal.matchers.StringContains org.junit.internal.matchers.SubstringMatcher |
Message Passing Coupling | 0 | - |
Number of Commands | 2 | - |
Interfaces | 0 | - |
Cumulative Number of Comments | 3 | - |
Halstead Cumulative Length | 180 | - |
Modifiers | 0 | - |
Methods in Class : org.junit.internal.matchers.TypeSafeMatcher | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | COMP | NOCL | NOS | HLTH | HVOC | HEFF | HBUG | CREF | XMET | LMET | NLOC | NOC | NOA | MOD | HDIF | VDEC | EXCT | EXCR | CAST | TDN | HVOL | NAND | VREF | NOPR | MDN | NEXP | LOOP | |
![]() | TypeSafeMatcher | 1 | 0 | 2 | 11 | 9 | 87.17 | 0.01 | 0 | 0 | 2 | 3 | 0 | 0 | 1 | 2.50 | 0 | 0 | 0 | 0 | 0 | 34.87 | 4 | 1 | 7 | 0 | 3 | 0 |
![]() | TypeSafeMatcher | 1 | 0 | 2 | 15 | 13 | 310.84 | 0.02 | 2 | 0 | 0 | 3 | 0 | 1 | 1 | 5.60 | 0 | 0 | 0 | 0 | 0 | 55.51 | 7 | 2 | 8 | 0 | 1 | 0 |
![]() | findExpectedType | 4 | 0 | 12 | 67 | 33 | 5274.81 | 0.11 | 5 | 4 | 1 | 10 | 0 | 1 | 2 | 15.61 | 1 | 0 | 0 | 0 | 3 | 337.97 | 23 | 7 | 44 | 3 | 8 | 2 |
![]() | isMatchesSafelyMethod | 1 | 0 | 2 | 33 | 21 | 922.39 | 0.05 | 1 | 4 | 0 | 5 | 0 | 1 | 2 | 6.36 | 0 | 0 | 0 | 0 | 0 | 144.95 | 14 | 4 | 19 | 0 | 9 | 0 |
![]() | matches | 1 | 5 | 2 | 30 | 21 | 838.53 | 0.04 | 2 | 1 | 1 | 5 | 1 | 1 | 3 | 6.36 | 0 | 0 | 0 | 1 | 0 | 131.77 | 14 | 4 | 16 | 0 | 6 | 0 |
![]() | matchesSafely | 1 | 4 | 1 | 8 | 8 | 48.00 | 0.01 | 1 | 0 | 0 | 1 | 1 | 1 | 3 | 2.00 | 0 | 0 | 0 | 0 | 0 | 24.00 | 4 | 0 | 4 | 0 | 0 | 0 |
Analysis of Method : TypeSafeMatcher() in Class : org.junit.internal.matchers.TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | TypeSafeMatcher | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 11 | - |
Halstead Vocabulary | 9 | - |
Halstead Effort | 87.17 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 0 | |
External Methods Called | 0 | |
Local Methods Called | 2 | getClass (1) findExpectedType (1) |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 0 | - |
Modifiers | 1 | protected |
Halstead Difficulty | 2.50 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 34.87 | - |
Number of Operands | 4 | - |
Variable References | 1 | expectedType (1) |
Number of Operators | 7 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 3 | - |
Number of Loops | 0 | - |
Analysis of Method : TypeSafeMatcher(Class) in Class : org.junit.internal.matchers.TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | TypeSafeMatcher | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 15 | - |
Halstead Vocabulary | 13 | - |
Halstead Effort | 310.84 | - |
Halstead Bugs | 0.02 | - |
Classes Referenced | 2 | java.lang.Class (1) T (2) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 3 | - |
Number of Comments | 0 | - |
Arguments | 1 | expectedType (java.lang.Class) |
Modifiers | 1 | protected |
Halstead Difficulty | 5.60 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 55.51 | - |
Number of Operands | 7 | - |
Variable References | 2 | expectedType (2) |
Number of Operators | 8 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 1 | - |
Number of Loops | 0 | - |
Analysis of Method : findExpectedType(Class) in Class : org.junit.internal.matchers.TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | findExpectedType | - |
Cyclomatic Complexity | 4 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 12 | - |
Halstead Length | 67 | - |
Halstead Vocabulary | 33 | - |
Halstead Effort | 5274.81 | - |
Halstead Bugs | 0.11 | - |
Classes Referenced | 5 | Object.class (1) ? (3) java.lang.Class (3) java.lang.reflect.Method (1) java.lang.Error (1) |
External Methods Called | 4 | method.getParameterTypes (1) java.lang.Error.Error (1) Class>.getSuperclass (1) Class>.getDeclaredMethods (1) |
Local Methods Called | 1 | isMatchesSafelyMethod (1) |
Lines Of Code | 10 | - |
Number of Comments | 0 | - |
Arguments | 1 | fromClass (java.lang.Class) |
Modifiers | 2 | private static |
Halstead Difficulty | 15.61 | - |
Variable Declarations | 1 | c (Class<?>) |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 3 | - |
Halstead Volume | 337.97 | - |
Number of Operands | 23 | - |
Variable References | 7 | fromClass (1) method (2) c (4) |
Number of Operators | 44 | - |
Max. depth of nesting | 3 | - |
Number of Expressions | 8 | - |
Number of Loops | 2 | - |
Analysis of Method : isMatchesSafelyMethod(Method) in Class : org.junit.internal.matchers.TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | isMatchesSafelyMethod | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 0 | - |
Number of Statements | 2 | - |
Halstead Length | 33 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 922.39 | - |
Halstead Bugs | 0.05 | - |
Classes Referenced | 1 | java.lang.reflect.Method (1) |
External Methods Called | 4 | java.lang.reflect.Method.isSynthetic (1) getName().equals (1) java.lang.reflect.Method.getName (1) java.lang.reflect.Method.getParameterTypes (1) |
Local Methods Called | 0 | |
Lines Of Code | 5 | - |
Number of Comments | 0 | - |
Arguments | 1 | method (java.lang.reflect.Method) |
Modifiers | 2 | private static |
Halstead Difficulty | 6.36 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 144.95 | - |
Number of Operands | 14 | - |
Variable References | 4 | length (1) method (3) |
Number of Operators | 19 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 9 | - |
Number of Loops | 0 | - |
Analysis of Method : matches(Object) in Class : org.junit.internal.matchers.TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | matches | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 5 | - |
Number of Statements | 2 | - |
Halstead Length | 30 | - |
Halstead Vocabulary | 21 | - |
Halstead Effort | 838.53 | - |
Halstead Bugs | 0.04 | - |
Classes Referenced | 2 | java.lang.Object (1) T (2) |
External Methods Called | 1 | java.lang.Class.isInstance (1) |
Local Methods Called | 1 | matchesSafely (1) |
Lines Of Code | 5 | - |
Number of Comments | 1 | - |
Arguments | 1 | item (java.lang.Object) |
Modifiers | 3 | @SuppressWarnings({"unchecked"}) public final |
Halstead Difficulty | 6.36 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 1 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 131.77 | - |
Number of Operands | 14 | - |
Variable References | 4 | expectedType (1) item (3) |
Number of Operators | 16 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 6 | - |
Number of Loops | 0 | - |
Analysis of Method : matchesSafely(T) in Class : org.junit.internal.matchers.TypeSafeMatcher | ||
---|---|---|
Feature | Number | Values |
Name | matchesSafely | - |
Cyclomatic Complexity | 1 | - |
Number of Comment Lines | 4 | - |
Number of Statements | 1 | - |
Halstead Length | 8 | - |
Halstead Vocabulary | 8 | - |
Halstead Effort | 48.00 | - |
Halstead Bugs | 0.01 | - |
Classes Referenced | 1 | T (1) |
External Methods Called | 0 | |
Local Methods Called | 0 | |
Lines Of Code | 1 | - |
Number of Comments | 1 | - |
Arguments | 1 | item (T) |
Modifiers | 3 | private public abstract |
Halstead Difficulty | 2.00 | - |
Variable Declarations | 0 | |
Exceptions Thrown | 0 | |
Exceptions Referenced | 0 | |
Number of casts | 0 | - |
Total Depth of Nesting | 0 | - |
Halstead Volume | 24.00 | - |
Number of Operands | 4 | - |
Variable References | 0 | |
Number of Operators | 4 | - |
Max. depth of nesting | 0 | - |
Number of Expressions | 0 | - |
Number of Loops | 0 | - |
Top of this page | Data Generated by JHawk - The Java Metrics tool | Home |