public static class JavaMethod.ForLoadedMethod extends Object implements JavaMethod
JavaMethod.ForLoadedMethod, JavaMethod.ForUnavailableMethod| Constructor and Description |
|---|
ForLoadedMethod(Method method)
Creates a new representation for a loaded method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
Object |
invoke(Object instance,
Object... argument)
Invokes this method.
|
boolean |
isInvokable()
Checks if this method is invokable on the current version of the Java virtual machine.
|
String |
toString() |
public ForLoadedMethod(Method method)
method - The method to invoke.public boolean isInvokable()
JavaMethodisInvokable in interface JavaMethodtrue if this method is invokable.public Object invoke(Object instance, Object... argument)
JavaMethodinvoke in interface JavaMethodinstance - The instance on which the method is to be invoked.argument - The arguments for this method.Copyright © 2014–2015. All rights reserved.