@Override
public IBehaviorInfo getMethodBehavior(Method method) {
try {
String className = method.declaringType().name();
IStructureDatabase db = this.todSession.getLogBrowser().getStructureDatabase();
IClassInfo cls = db.getClass(className, false);
List<Type> argumentTypes = method.argumentTypes();
ITypeInfo[] args = new ITypeInfo[argumentTypes.size()];
for (int i = 0; i < argumentTypes.size(); i++) {
args[i] = db.getType(argumentTypes.get(i).signature(), false);
}
ITypeInfo ret = db.getType(method.returnType().signature(), false);
IBehaviorInfo behavior = cls.getBehavior(method.name(), args, ret);
return behavior;
} catch (ClassNotLoadedException ex) {
return null;
}