public class MethodUtils
extends java.lang.Object
| Constructor and Description |
|---|
MethodUtils(RootNode rootNode) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IMethodDetails> |
collectOverloadedMethods(ArgType startCls,
MethodInfo mthInfo) |
@Nullable IMethodDetails |
getMethodDetails(BaseInvokeNode invokeNode) |
@Nullable IMethodDetails |
getMethodDetails(MethodInfo callMth) |
@Nullable ArgType |
getMethodGenericReturnType(BaseInvokeNode invokeNode) |
ClassInfo |
getMethodOriginDeclClass(MethodNode mth) |
@Nullable IMethodDetails |
getOverrideBaseMth(MethodNode mth) |
boolean |
isMethodArgsOverloaded(ArgType startCls,
MethodInfo mthInfo)
Search methods with same name and args count in class hierarchy starting from
startCls
Beware startCls can be different from mthInfo.getDeclClass() |
@Nullable MethodNode |
resolveMethod(BaseInvokeNode invokeNode) |
public MethodUtils(RootNode rootNode)
@Nullable public @Nullable IMethodDetails getMethodDetails(BaseInvokeNode invokeNode)
@Nullable public @Nullable IMethodDetails getMethodDetails(MethodInfo callMth)
@Nullable public @Nullable MethodNode resolveMethod(BaseInvokeNode invokeNode)
public boolean isMethodArgsOverloaded(ArgType startCls, MethodInfo mthInfo)
startCls
Beware startCls can be different from mthInfo.getDeclClass()public java.util.List<IMethodDetails> collectOverloadedMethods(ArgType startCls, MethodInfo mthInfo)
@Nullable public @Nullable ArgType getMethodGenericReturnType(BaseInvokeNode invokeNode)
@Nullable public @Nullable IMethodDetails getOverrideBaseMth(MethodNode mth)
public ClassInfo getMethodOriginDeclClass(MethodNode mth)