com.google.testing.threadtester
Class MethodInstrumentationImpl

java.lang.Object
  extended by com.google.testing.threadtester.MethodInstrumentationImpl
All Implemented Interfaces:
MethodInstrumentation

public class MethodInstrumentationImpl
extends Object
implements MethodInstrumentation

Represents a method within an instrumented class.

Author:
alasdair.mackintosh@gmail.com (Alasdair Mackintosh)

Constructor Summary
MethodInstrumentationImpl(Method method, List<LineInstrumentation> lines)
           
 
Method Summary
 List<LineInstrumentation> getLines()
          Returns the lines in this method.
 String getName()
          Returns the name of the method.
 int getNumLines()
          Returns the number of executable lines in the method.
 Method getUnderlyingMethod()
          Returns the Java Method object corresponding to this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInstrumentationImpl

public MethodInstrumentationImpl(Method method,
                                 List<LineInstrumentation> lines)
Method Detail

getUnderlyingMethod

public Method getUnderlyingMethod()
Description copied from interface: MethodInstrumentation
Returns the Java Method object corresponding to this method.

Specified by:
getUnderlyingMethod in interface MethodInstrumentation

getName

public String getName()
Description copied from interface: MethodInstrumentation
Returns the name of the method.

Specified by:
getName in interface MethodInstrumentation

getLines

public List<LineInstrumentation> getLines()
Description copied from interface: MethodInstrumentation
Returns the lines in this method.

Specified by:
getLines in interface MethodInstrumentation

getNumLines

public int getNumLines()
Description copied from interface: MethodInstrumentation
Returns the number of executable lines in the method.

Specified by:
getNumLines in interface MethodInstrumentation


Copyright © 2013. All Rights Reserved.