Class ResolvedMethod
- java.lang.Object
-
- com.tonic.analysis.execution.resolve.ResolvedMethod
-
public class ResolvedMethod extends Object
A resolved method reference paired with its declaring class and invoke kind.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResolvedMethod.InvokeKindDispatch style the resolved method should be invoked with.
-
Constructor Summary
Constructors Constructor Description ResolvedMethod(MethodEntry method, ClassFile declaringClass, ResolvedMethod.InvokeKind kind)Creates a resolved method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassFilegetDeclaringClass()ResolvedMethod.InvokeKindgetKind()MethodEntrygetMethod()booleanisAbstract()booleanisNative()booleanisStatic()StringtoString()
-
-
-
Constructor Detail
-
ResolvedMethod
public ResolvedMethod(MethodEntry method, ClassFile declaringClass, ResolvedMethod.InvokeKind kind)
Creates a resolved method.- Parameters:
method- the matched method entrydeclaringClass- the class that declares itkind- the dispatch style to use
-
-
Method Detail
-
getMethod
public MethodEntry getMethod()
- Returns:
- the method
-
getDeclaringClass
public ClassFile getDeclaringClass()
- Returns:
- the declaring class
-
getKind
public ResolvedMethod.InvokeKind getKind()
- Returns:
- the kind
-
isStatic
public boolean isStatic()
- Returns:
- true if the method has the static modifier
-
isNative
public boolean isNative()
- Returns:
- true if the method has the native modifier
-
isAbstract
public boolean isAbstract()
- Returns:
- true if the method has the abstract modifier
-
-