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
FeatureNumberValues
NameTypeSafeMatcher-
Number of Methods6-
LCOM0.80-
Average Cyclomatic Complexity1.50-
Number of Statements23-
Halstead Cumulative Bugs0.26-
Halstead Effort7681.01-
UnWeighted Class Size7-
Instance Variables1expectedType (java.lang.Class)
Imported Packages2java.lang.reflect.Method
org.hamcrest.BaseMatcher
Response For class6-
CBO4-
Maintainability Index168.53-
Cumulative Number of Comment Lines15-
Lines Of Code31-
Fan In4-
DIT1-
Maintainability Index (NC)128.64-
Specialization ratio3.00-
Reuse Ratio0.20-
COH0.33-
Local Method Calls3isMatchesSafelyMethod (1)
matchesSafely (1)
findExpectedType (1)
LCOM210.00-
Max Complexity4-
Halstead Cumulative Volume784.42-
Hierarchy Method Calls1getClass (1)
Number of Queries4-
Fan Out0-
SuperClass Nameorg.hamcrest.BaseMatcher-
SIX0.00-
External Method Calls0java.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)
Superclasses1org.hamcrest.BaseMatcher
Total Complexity9-
Subclasses3org.junit.internal.matchers.IsCollectionContaining
org.junit.internal.matchers.StringContains
org.junit.internal.matchers.SubstringMatcher
Message Passing Coupling0-
Number of Commands2-
Interfaces0 -
Cumulative Number of Comments3-
Halstead Cumulative Length180-
Modifiers0 -
Summary of methods in org.junit.internal.matchers.TypeSafeMatcher
Methods in Class : org.junit.internal.matchers.TypeSafeMatcher
NameCOMPNOCLNOSHLTHHVOCHEFFHBUGCREFXMETLMETNLOCNOCNOAMODHDIFVDECEXCTEXCRCASTTDNHVOLNANDVREFNOPRMDNNEXPLOOP
TypeSafeMatcher10211987.170.0100230012.500000034.87417030
TypeSafeMatcher1021513310.840.0220030115.600000055.51728010
findExpectedType401267335274.810.115411001215.6110003337.9723744382
isMatchesSafelyMethod1023321922.390.0514050126.3600000144.9514419090
matches1523021838.530.0421151136.3600010131.7714416060
matchesSafely1418848.000.0110011132.000000024.00404000


Analysis of Method : TypeSafeMatcher() in Class : org.junit.internal.matchers.TypeSafeMatcher
FeatureNumberValues
NameTypeSafeMatcher-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length11-
Halstead Vocabulary9-
Halstead Effort87.17-
Halstead Bugs0.01-
Classes Referenced0
External Methods Called0
Local Methods Called2getClass (1)
findExpectedType (1)
Lines Of Code3-
Number of Comments0-
Arguments0 -
Modifiers1protected
Halstead Difficulty2.50-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume34.87-
Number of Operands4-
Variable References1expectedType (1)
Number of Operators7-
Max. depth of nesting0-
Number of Expressions3-
Number of Loops0-

Top of this page

Analysis of Method : TypeSafeMatcher(Class) in Class : org.junit.internal.matchers.TypeSafeMatcher
FeatureNumberValues
NameTypeSafeMatcher-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length15-
Halstead Vocabulary13-
Halstead Effort310.84-
Halstead Bugs0.02-
Classes Referenced2java.lang.Class (1)
T (2)
External Methods Called0
Local Methods Called0
Lines Of Code3-
Number of Comments0-
Arguments1expectedType (java.lang.Class)
Modifiers1protected
Halstead Difficulty5.60-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume55.51-
Number of Operands7-
Variable References2expectedType (2)
Number of Operators8-
Max. depth of nesting0-
Number of Expressions1-
Number of Loops0-

Top of this page

Analysis of Method : findExpectedType(Class) in Class : org.junit.internal.matchers.TypeSafeMatcher
FeatureNumberValues
NamefindExpectedType-
Cyclomatic Complexity4-
Number of Comment Lines0-
Number of Statements12-
Halstead Length67-
Halstead Vocabulary33-
Halstead Effort5274.81-
Halstead Bugs0.11-
Classes Referenced5Object.class (1)
? (3)
java.lang.Class (3)
java.lang.reflect.Method (1)
java.lang.Error (1)
External Methods Called4method.getParameterTypes (1)
java.lang.Error.Error (1)
Class.getSuperclass (1)
Class.getDeclaredMethods (1)
Local Methods Called1isMatchesSafelyMethod (1)
Lines Of Code10-
Number of Comments0-
Arguments1fromClass (java.lang.Class)
Modifiers2private
static
Halstead Difficulty15.61-
Variable Declarations1c (Class<?>)
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting3-
Halstead Volume337.97-
Number of Operands23-
Variable References7fromClass (1)
method (2)
c (4)
Number of Operators44-
Max. depth of nesting3-
Number of Expressions8-
Number of Loops2-

Top of this page

Analysis of Method : isMatchesSafelyMethod(Method) in Class : org.junit.internal.matchers.TypeSafeMatcher
FeatureNumberValues
NameisMatchesSafelyMethod-
Cyclomatic Complexity1-
Number of Comment Lines0-
Number of Statements2-
Halstead Length33-
Halstead Vocabulary21-
Halstead Effort922.39-
Halstead Bugs0.05-
Classes Referenced1java.lang.reflect.Method (1)
External Methods Called4java.lang.reflect.Method.isSynthetic (1)
getName().equals (1)
java.lang.reflect.Method.getName (1)
java.lang.reflect.Method.getParameterTypes (1)
Local Methods Called0
Lines Of Code5-
Number of Comments0-
Arguments1method (java.lang.reflect.Method)
Modifiers2private
static
Halstead Difficulty6.36-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume144.95-
Number of Operands14-
Variable References4length (1)
method (3)
Number of Operators19-
Max. depth of nesting0-
Number of Expressions9-
Number of Loops0-

Top of this page

Analysis of Method : matches(Object) in Class : org.junit.internal.matchers.TypeSafeMatcher
FeatureNumberValues
Namematches-
Cyclomatic Complexity1-
Number of Comment Lines5-
Number of Statements2-
Halstead Length30-
Halstead Vocabulary21-
Halstead Effort838.53-
Halstead Bugs0.04-
Classes Referenced2java.lang.Object (1)
T (2)
External Methods Called1java.lang.Class.isInstance (1)
Local Methods Called1matchesSafely (1)
Lines Of Code5-
Number of Comments1-
Arguments1item (java.lang.Object)
Modifiers3@SuppressWarnings({"unchecked"})
public
final
Halstead Difficulty6.36-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts1-
Total Depth of Nesting0-
Halstead Volume131.77-
Number of Operands14-
Variable References4expectedType (1)
item (3)
Number of Operators16-
Max. depth of nesting0-
Number of Expressions6-
Number of Loops0-

Top of this page

Analysis of Method : matchesSafely(T) in Class : org.junit.internal.matchers.TypeSafeMatcher
FeatureNumberValues
NamematchesSafely-
Cyclomatic Complexity1-
Number of Comment Lines4-
Number of Statements1-
Halstead Length8-
Halstead Vocabulary8-
Halstead Effort48.00-
Halstead Bugs0.01-
Classes Referenced1T (1)
External Methods Called0
Local Methods Called0
Lines Of Code1-
Number of Comments1-
Arguments1item (T)
Modifiers3private
public
abstract
Halstead Difficulty2.00-
Variable Declarations0
Exceptions Thrown0
Exceptions Referenced0
Number of casts0-
Total Depth of Nesting0-
Halstead Volume24.00-
Number of Operands4-
Variable References0
Number of Operators4-
Max. depth of nesting0-
Number of Expressions0-
Number of Loops0-

Top of this page

Top of this page Data Generated by JHawk - The Java Metrics tool Home