Package org.slf4j.instrumentation
Class JavassistHelper
java.lang.Object
org.slf4j.instrumentation.JavassistHelper
Helper methods for Javassist functionality.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getSignature
(javassist.CtBehavior method) Return javassist source snippet which lists all the parameters and their values.static String
returnValue
(javassist.CtBehavior method) Create a javassist source snippet which either is empty (for anything which does not return a value) or an explanatory text around the $_ javassist return value variable.
-
Constructor Details
-
JavassistHelper
public JavassistHelper()
-
-
Method Details
-
returnValue
Create a javassist source snippet which either is empty (for anything which does not return a value) or an explanatory text around the $_ javassist return value variable.- Parameters:
method
- descriptor of method- Returns:
- source snippet
- Throws:
javassist.NotFoundException
-
getSignature
Return javassist 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:
javassist.NotFoundException
-