com.jeffpalm.demetercop.metrics
Class LCOM5

java.lang.Object
  extended by com.jeffpalm.demetercop.metrics.LCOM5
All Implemented Interfaces:
Metric

public class LCOM5
extends java.lang.Object


Constructor Summary
LCOM5()
           
 
Method Summary
protected  double after(java.lang.Class cls)
          This *CAN* be overridden.
protected  void after(java.util.List classes)
           
protected  void before(java.util.List classes)
           
protected  java.util.List classes()
           
protected  Classpath classpath()
           
 java.util.Map compute(java.util.List classes, ProgressMonitor.Task pm)
           
protected  void debug(java.lang.String msg)
           
protected  java.lang.String decType(org.apache.bcel.generic.FieldInstruction fi, org.apache.bcel.generic.ConstantPoolGen cp)
           
protected  java.lang.String decType(org.apache.bcel.generic.InvokeInstruction ii, org.apache.bcel.generic.ConstantPoolGen cp)
           
protected  double div(double a, double b)
           
 boolean equals(java.lang.Object o)
           
protected  java.util.Set fieldSet(java.lang.String c, org.apache.bcel.generic.MethodGen mg)
           
protected  void finalResult(int numClasses)
           
protected  java.lang.Class getClass(java.lang.String className)
           
protected  java.lang.Object hash(org.apache.bcel.generic.ConstantPoolGen cp, org.apache.bcel.generic.InvokeInstruction ii)
           
protected  java.lang.Object hash(org.apache.bcel.generic.MethodGen mg)
           
protected  java.lang.Object hash(java.lang.String name, org.apache.bcel.generic.Type[] argTypes, org.apache.bcel.generic.Type retType, org.apache.bcel.generic.Type decType)
           
 int hashCode()
           
protected  boolean isAncestor(java.lang.String c, java.lang.String d)
           
protected  boolean isAncestorInternal(java.lang.String c, java.lang.String d)
           
protected  boolean isDecendent(java.lang.String c, java.lang.String d)
           
protected  boolean isDecendentInternal(java.lang.String c, java.lang.String d)
           
protected  boolean isFriend(java.lang.String c, java.lang.String d)
           
protected  boolean isFriendInternal(java.lang.String c, java.lang.String d)
           
protected  boolean isObject(org.apache.bcel.classfile.JavaClass jc)
           
protected  org.apache.bcel.classfile.JavaClass javaClass(java.lang.Class cls)
           
protected  org.apache.bcel.classfile.JavaClass javaClass(java.lang.String sig)
           
protected  Main main()
           
protected  java.util.Map methodCallMap(java.lang.String c)
           
protected  java.util.Map methodGenMap(java.lang.String className)
           
protected  java.util.Map methodMap(java.lang.String c)
           
protected  java.util.Set methodSet(java.lang.String c, java.lang.Object hash)
           
 java.lang.String name()
           
protected  void note(java.lang.String msg)
           
protected  java.lang.String packageName(java.lang.String sig)
           
protected  void record(java.lang.Class cls, double value)
           
protected  void restCompute(java.lang.Class cls)
           
 void setClasspath(Classpath classpath)
           
 void setMain(Main main)
           
 void setVerbose(boolean verbose)
           
 boolean shouldRecord()
          Can override this.
protected  java.lang.String signature(java.lang.String className)
           
protected  java.lang.String string(java.lang.Class cls)
           
protected  java.lang.String string(org.apache.bcel.generic.Type type)
           
protected  org.apache.bcel.classfile.JavaClass superClass(org.apache.bcel.classfile.JavaClass c)
           
 java.lang.String toString()
           
protected  org.apache.bcel.generic.Type type(java.lang.Class cls)
           
protected  org.apache.bcel.generic.Type type(java.lang.String className)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LCOM5

public LCOM5()
Method Detail

after

protected double after(java.lang.Class cls)
This *CAN* be overridden.


methodMap

protected final java.util.Map methodMap(java.lang.String c)

fieldSet

protected final java.util.Set fieldSet(java.lang.String c,
                                       org.apache.bcel.generic.MethodGen mg)

methodCallMap

protected final java.util.Map methodCallMap(java.lang.String c)

methodSet

protected final java.util.Set methodSet(java.lang.String c,
                                        java.lang.Object hash)

methodGenMap

protected final java.util.Map methodGenMap(java.lang.String className)

restCompute

protected void restCompute(java.lang.Class cls)

after

protected final void after(java.util.List classes)

setVerbose

public final void setVerbose(boolean verbose)
Specified by:
setVerbose in interface Metric

setMain

public final void setMain(Main main)
Specified by:
setMain in interface Metric

main

protected final Main main()

setClasspath

public void setClasspath(Classpath classpath)
Specified by:
setClasspath in interface Metric

classpath

protected final Classpath classpath()

shouldRecord

public boolean shouldRecord()
Can override this.

Specified by:
shouldRecord in interface Metric

classes

protected final java.util.List classes()

before

protected void before(java.util.List classes)

note

protected final void note(java.lang.String msg)

compute

public final java.util.Map compute(java.util.List classes,
                                   ProgressMonitor.Task pm)
                            throws java.lang.Exception
Specified by:
compute in interface Metric
Throws:
java.lang.Exception

finalResult

protected void finalResult(int numClasses)

record

protected final void record(java.lang.Class cls,
                            double value)

debug

protected final void debug(java.lang.String msg)

hash

protected final java.lang.Object hash(org.apache.bcel.generic.MethodGen mg)

hash

protected final java.lang.Object hash(org.apache.bcel.generic.ConstantPoolGen cp,
                                      org.apache.bcel.generic.InvokeInstruction ii)

div

protected final double div(double a,
                           double b)

hash

protected final java.lang.Object hash(java.lang.String name,
                                      org.apache.bcel.generic.Type[] argTypes,
                                      org.apache.bcel.generic.Type retType,
                                      org.apache.bcel.generic.Type decType)

string

protected final java.lang.String string(org.apache.bcel.generic.Type type)

signature

protected final java.lang.String signature(java.lang.String className)

string

protected final java.lang.String string(java.lang.Class cls)

type

protected final org.apache.bcel.generic.Type type(java.lang.Class cls)

type

protected final org.apache.bcel.generic.Type type(java.lang.String className)

javaClass

protected final org.apache.bcel.classfile.JavaClass javaClass(java.lang.Class cls)

javaClass

protected final org.apache.bcel.classfile.JavaClass javaClass(java.lang.String sig)

superClass

protected final org.apache.bcel.classfile.JavaClass superClass(org.apache.bcel.classfile.JavaClass c)

getClass

protected final java.lang.Class getClass(java.lang.String className)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

packageName

protected final java.lang.String packageName(java.lang.String sig)

isObject

protected final boolean isObject(org.apache.bcel.classfile.JavaClass jc)

isAncestor

protected final boolean isAncestor(java.lang.String c,
                                   java.lang.String d)
                            throws java.lang.Exception
Throws:
java.lang.Exception

isAncestorInternal

protected final boolean isAncestorInternal(java.lang.String c,
                                           java.lang.String d)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

isDecendent

protected final boolean isDecendent(java.lang.String c,
                                    java.lang.String d)
                             throws java.lang.Exception
Throws:
java.lang.Exception

isDecendentInternal

protected final boolean isDecendentInternal(java.lang.String c,
                                            java.lang.String d)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

isFriend

protected final boolean isFriend(java.lang.String c,
                                 java.lang.String d)

isFriendInternal

protected final boolean isFriendInternal(java.lang.String c,
                                         java.lang.String d)

decType

protected final java.lang.String decType(org.apache.bcel.generic.InvokeInstruction ii,
                                         org.apache.bcel.generic.ConstantPoolGen cp)

decType

protected final java.lang.String decType(org.apache.bcel.generic.FieldInstruction fi,
                                         org.apache.bcel.generic.ConstantPoolGen cp)

name

public java.lang.String name()
Specified by:
name in interface Metric

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object