R - return typeD - declaring type (instance type or declaring class if static)public interface NativeMethod<R,D>
| Modifier and Type | Method and Description |
|---|---|
R |
CallAnyMethod(D instance,
Object... args)
This method behaves like
Method.invoke(Object, Object...) but hides the
exception type from the caller. |
boolean |
CallBooleanMethod(D instance,
Object... args)
Call a non-static method that returns a boolean.
|
byte |
CallByteMethod(D instance,
Object... args)
Call a non-static method that returns a byte.
|
char |
CallCharMethod(D instance,
Object... args)
Call a non-static method that returns a char.
|
void |
CallConstructor(D instance,
Object... args)
Special method to call a constructor of an already existing object.
|
double |
CallDoubleMethod(D instance,
Object... args)
Call a non-static method that returns a double.
|
float |
CallFloatMethod(D instance,
Object... args)
Call a non-static method that returns a float.
|
int |
CallIntMethod(D instance,
Object... args)
Call a non-static method that returns a int.
|
long |
CallLongMethod(D instance,
Object... args)
Call a non-static method that returns a long.
|
R |
CallObjectMethod(D instance,
Object... args)
Call a non-static method that returns a Object.
|
short |
CallShortMethod(D instance,
Object... args)
Call a non-static method that returns a short.
|
boolean |
CallStaticBooleanMethod(Object... args)
Call a static method that returns a boolean.
|
byte |
CallStaticByteMethod(Object... args)
Call a static method that returns a byte.
|
char |
CallStaticCharMethod(Object... args)
Call a static method that returns a char.
|
double |
CallStaticDoubleMethod(Object... args)
Call a static method that returns a double.
|
float |
CallStaticFloatMethod(Object... args)
Call a static method that returns a float.
|
int |
CallStaticIntMethod(Object... args)
Call a static method that returns a int.
|
long |
CallStaticLongMethod(Object... args)
Call a static method that returns a long.
|
R |
CallStaticObjectMethod(Object... args)
Call a static method that returns a object.
|
short |
CallStaticShortMethod(Object... args)
Call a static method that returns a short.
|
void |
CallStaticVoidMethod(Object... args)
Call a static void method.
|
void |
CallVoidMethod(D instance,
Object... args)
Call a non-static void method
|
Class<D> |
getDeclaringClass()
returns the class/interface the method is declared in.
|
String |
getName()
Name of the method
|
Class[] |
getParameterTypes()
Method parameter.
|
Class<R> |
getReturnType()
gets the return type or "void.class" if the method is a void method.
|
R |
invoke(D instance,
Object... args)
This method behaves like
Method.invoke(Object, Object...) |
boolean |
isConstructor()
returns true if the method refers to a constructor.
|
boolean |
isPrimitiveMethod()
returns true if the method returns a primitive type (byte, char, short, int, long, float, double)
|
boolean |
isStatic()
is the method static?
|
boolean |
isVoidMethod()
returns true if the method is a void method.
|
String getName()
Class[] getParameterTypes()
boolean isStatic()
Class<D> getDeclaringClass()
Class<R> getReturnType()
boolean isVoidMethod()
boolean isPrimitiveMethod()
boolean isConstructor()
R invoke(D instance, Object... args) throws InvocationTargetException
Method.invoke(Object, Object...)InvocationTargetExceptionR CallAnyMethod(D instance, Object... args)
Method.invoke(Object, Object...) but hides the
exception type from the caller.void CallConstructor(D instance, Object... args)
JVMNativeUtil.AllocObject(java.lang.Class<T>) or can be used to recall the constructor of an object.R CallObjectMethod(D instance, Object... args)
long CallLongMethod(D instance, Object... args)
int CallIntMethod(D instance, Object... args)
short CallShortMethod(D instance, Object... args)
byte CallByteMethod(D instance, Object... args)
char CallCharMethod(D instance, Object... args)
boolean CallBooleanMethod(D instance, Object... args)
float CallFloatMethod(D instance, Object... args)
double CallDoubleMethod(D instance, Object... args)
R CallStaticObjectMethod(Object... args)
void CallStaticVoidMethod(Object... args)
long CallStaticLongMethod(Object... args)
int CallStaticIntMethod(Object... args)
short CallStaticShortMethod(Object... args)
byte CallStaticByteMethod(Object... args)
char CallStaticCharMethod(Object... args)
boolean CallStaticBooleanMethod(Object... args)
float CallStaticFloatMethod(Object... args)
double CallStaticDoubleMethod(Object... args)
Copyright © 2023. All rights reserved.