|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xbean.recipe.XbeanAsmParameterNameLoader
public class XbeanAsmParameterNameLoader
Implementation of ParameterNameLoader that uses ASM to read the parameter names from the local variable table in the class byte code. This wonderful piece of code was taken from org.springframework.core.LocalVariableTableParameterNameDiscover
Constructor Summary | |
---|---|
XbeanAsmParameterNameLoader()
|
Method Summary | |
---|---|
List<String> |
get(Constructor constructor)
Gets the parameter names of the specified constructor or null if the class was compiled without debug symbols on. |
List<String> |
get(Method method)
Gets the parameter names of the specified method or null if the class was compiled without debug symbols on. |
Map<Constructor,List<String>> |
getAllConstructorParameters(Class clazz)
Gets the parameter names of all constructor or null if the class was compiled without debug symbols on. |
Map<Method,List<String>> |
getAllMethodParameters(Class clazz,
String methodName)
Gets the parameter names of all methods with the specified name or null if the class was compiled without debug symbols on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XbeanAsmParameterNameLoader()
Method Detail |
---|
public List<String> get(Method method)
get
in interface ParameterNameLoader
method
- the method for which the parameter names should be retrieved
public List<String> get(Constructor constructor)
get
in interface ParameterNameLoader
constructor
- the constructor for which the parameters should be retrieved
public Map<Constructor,List<String>> getAllConstructorParameters(Class clazz)
clazz
- the class for which the constructor parameter names should be retrieved
public Map<Method,List<String>> getAllMethodParameters(Class clazz, String methodName)
clazz
- the class for which the method parameter names should be retrievedmethodName
- the of the method for which the parameters should be retrieved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |