Class MethodInfo
- java.lang.Object
-
- com.tonic.analysis.execution.dispatch.MethodInfo
-
public class MethodInfo extends Object
A resolved method reference: owner class, name, descriptor, and invocation kind flags.
-
-
Constructor Summary
Constructors Constructor Description MethodInfo(String ownerClass, String methodName, String descriptor, boolean isStatic, boolean isInterface)Creates a non-special method reference.MethodInfo(String ownerClass, String methodName, String descriptor, boolean isStatic, boolean isInterface, boolean isSpecial)Creates a method reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescriptor()StringgetMethodName()StringgetOwnerClass()booleanisInterface()booleanisSpecial()booleanisStatic()StringtoString()
-
-
-
Constructor Detail
-
MethodInfo
public MethodInfo(String ownerClass, String methodName, String descriptor, boolean isStatic, boolean isInterface)
Creates a non-special method reference.- Parameters:
ownerClass- internal name of the declaring classmethodName- the method's namedescriptor- the method's descriptorisStatic- whether the method is invoked staticallyisInterface- whether the method is invoked via invokeinterface
-
MethodInfo
public MethodInfo(String ownerClass, String methodName, String descriptor, boolean isStatic, boolean isInterface, boolean isSpecial)
Creates a method reference.- Parameters:
ownerClass- internal name of the declaring classmethodName- the method's namedescriptor- the method's descriptorisStatic- whether the method is invoked staticallyisInterface- whether the method is invoked via invokeinterfaceisSpecial- whether the method is invoked via invokespecial
-
-
Method Detail
-
getOwnerClass
public String getOwnerClass()
- Returns:
- the owner class
-
getMethodName
public String getMethodName()
- Returns:
- the method name
-
getDescriptor
public String getDescriptor()
- Returns:
- the descriptor
-
isStatic
public boolean isStatic()
- Returns:
- whether static
-
isInterface
public boolean isInterface()
- Returns:
- whether interface
-
isSpecial
public boolean isSpecial()
- Returns:
- whether special
-
-