/testability-explorer/src/main/java/com/google/test/metric/ConstructorInvocationCost.java

http://testability-explorer.googlecode.com/ · Java · 16 lines · 12 code · 4 blank · 0 comment · 0 complexity · 9853301a9ff4a974f425c9d422bb2244 MD5 · raw file

  1. package com.google.test.metric;
  2. public class ConstructorInvocationCost extends MethodInvocationCost {
  3. public ConstructorInvocationCost(SourceLocation location,
  4. MethodCost methodCost, Reason costSourceType, Cost invocationCost) {
  5. super(location, methodCost, costSourceType, invocationCost);
  6. }
  7. @Override
  8. public void link(Cost directCost, Cost dependentCost,
  9. Cost constructorDependentCost) {
  10. constructorDependentCost.addWithoutLod(cost);
  11. }
  12. }