de.twenty11.unitprofile.domain
Class MethodDescriptor
java.lang.Object
de.twenty11.unitprofile.domain.MethodDescriptor
- All Implemented Interfaces:
- Comparable<MethodDescriptor>
public class MethodDescriptor
- extends Object
- implements Comparable<MethodDescriptor>
Describing object of an instrumented method.
The identity is comprised of the provided classname and the method name (the line number
is only for information purposes).
MethodDescriptor
public MethodDescriptor(String className,
String methodName,
int lineNumber)
MethodDescriptor
public MethodDescriptor(javassist.expr.NewExpr newExpr)
throws javassist.NotFoundException
- Throws:
javassist.NotFoundException
addInvocation
public void addInvocation(MethodInvocation invocation)
getBeforeBody
public String getBeforeBody()
getAfter
public String getAfter()
getClassName
public String getClassName()
getMethodName
public String getMethodName()
getLineNumber
public int getLineNumber()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(MethodDescriptor o)
- Specified by:
compareTo in interface Comparable<MethodDescriptor>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2013. All rights reserved.