mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-04 05:09:54 +08:00
update MethodDeclarationBinding.java
This commit is contained in:
parent
9ff2ce4a50
commit
10575cf172
@ -5,11 +5,10 @@ import com.alibaba.arthas.deps.org.objectweb.asm.tree.InsnList;
|
||||
|
||||
import com.taobao.arthas.bytekit.asm.MethodProcessor;
|
||||
import com.taobao.arthas.bytekit.utils.AsmOpUtils;
|
||||
import com.taobao.arthas.bytekit.utils.AsmUtils;
|
||||
|
||||
/**
|
||||
* 提供一个完整的 method 的string,包含类名,并不是desc?用户可以自己提取descs method的定义,前面是 public
|
||||
* /static 这些关键字,是有限的几个。后面是 throws ,的异常信息
|
||||
* TODO 提供一个完整的 method 的string,包含类名,并不是desc?用户可以自己提取descs method的定义,前面是 public
|
||||
* /static 这些关键字,是有限的几个。后面是 throws ,的异常信息。 或者做一下取巧比如把 classname | methoname | desc 之类连起一个String
|
||||
*
|
||||
* @author hengyunabc
|
||||
*
|
||||
@ -19,14 +18,13 @@ public class MethodDeclarationBinding extends Binding {
|
||||
@Override
|
||||
public void pushOntoStack(InsnList instructions, BindingContext bindingContext) {
|
||||
MethodProcessor methodProcessor = bindingContext.getMethodProcessor();
|
||||
AsmOpUtils.ldc(instructions, AsmUtils.methodDeclaration(Type.getObjectType(methodProcessor.getOwner()),
|
||||
methodProcessor.getMethodNode()));
|
||||
|
||||
// AsmOpUtils.ldc(instructions, AsmUtils.methodDeclaration(Type.getObjectType(methodProcessor.getOwner()),
|
||||
// methodProcessor.getMethodNode()));
|
||||
AsmOpUtils.ldc(instructions, methodProcessor.getMethodNode().desc);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type getType(BindingContext bindingContext) {
|
||||
return Type.getType(String.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user