de.twenty11.unitprofile.domain
Class MethodDescriptor

java.lang.Object
  extended by 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).


Constructor Summary
MethodDescriptor(javassist.expr.NewExpr newExpr)
           
MethodDescriptor(String className, String methodName, int lineNumber)
           
 
Method Summary
 void addInvocation(MethodInvocation invocation)
           
 int compareTo(MethodDescriptor o)
           
 boolean equals(Object obj)
           
 String getAfter()
           
 String getBeforeBody()
           
 String getClassName()
           
 int getLineNumber()
           
 String getMethodName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodDescriptor

public MethodDescriptor(String className,
                        String methodName,
                        int lineNumber)

MethodDescriptor

public MethodDescriptor(javassist.expr.NewExpr newExpr)
                 throws javassist.NotFoundException
Throws:
javassist.NotFoundException
Method Detail

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.