org.slf4j.instrumentation

Class JavassistHelper

public class JavassistHelper extends Object

Helper methods for Javassist functionality.
Method Summary
static StringgetSignature(CtBehavior method)
Return javaassist source snippet which lists all the parameters and their values.
static StringreturnValue(CtBehavior method)
Create a javaassist source snippet which either is empty (for anything which does not return a value) or a explanatory text around the $_ javaassist return value variable.

Method Detail

getSignature

public static String getSignature(CtBehavior method)
Return javaassist source snippet which lists all the parameters and their values. If available the source names are extracted from the debug information and used, otherwise just a number is shown.

Parameters: method

Returns:

Throws: NotFoundException

returnValue

public static String returnValue(CtBehavior method)
Create a javaassist source snippet which either is empty (for anything which does not return a value) or a explanatory text around the $_ javaassist return value variable.

Parameters: method descriptor of method

Returns: source snippet

Throws: NotFoundException

Copyright © 2005-2009 QOS.ch. All Rights Reserved.