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