| Modifier and Type | Method and Description |
|---|---|
static <T> Instance |
Instance.cast(Instance from,
String toClass)
Casts a the object that is contained in a Instance to an object of class clazz.
|
static <T> Instance |
InstanceBase.cast(Instance from,
String toClass)
Casts a the object that is contained in a NativeInvocation to an object of class clazz.
|
static <T> Instance |
Instance.cloneInstance(Instance from)
Clones a Instance
|
static <T> Instance |
InstanceBase.cloneInstance(Instance from)
Clones a NativeInvocation
|
Instance |
NativeInstantiation.createForStatic(String className) |
Instance |
NativeInstantiation.createJavaArray(String className,
InvocationArg... arg) |
Instance |
Instance.field(String fieldName)
Retrieves the instance held under the Field fieldName
|
Instance |
NativeInstantiation.instantiate(String className,
InvocationArg... arg) |
Instance |
Instance.invoke(String methodName,
InvocationArg... args)
Invokes a method of the instance of the class that is set for this
Instance |
Instance |
Instance.invokeStatic(String methodName,
InvocationArg... args)
Invokes a static method of the class that is set for this
Instance |
| Modifier and Type | Method and Description |
|---|---|
static <T> Instance |
Instance.cast(Instance from,
String toClass)
Casts a the object that is contained in a Instance to an object of class clazz.
|
static <T> Instance |
InstanceBase.cast(Instance from,
String toClass)
Casts a the object that is contained in a NativeInvocation to an object of class clazz.
|
static <T> Instance |
Instance.cloneInstance(Instance from)
Clones a Instance
|
static <T> Instance |
InstanceBase.cloneInstance(Instance from)
Clones a NativeInvocation
|
| Modifier and Type | Class and Description |
|---|---|
class |
InvocationArg |
| Modifier and Type | Method and Description |
|---|---|
Instance |
InvocationArg.field(String fieldName) |
Instance |
InvocationArg.getInstance() |
Instance |
InvocationArg.invoke(String methodName,
InvocationArg... args) |
Instance |
InvocationArg.invokeStatic(String methodName,
InvocationArg... args) |
| Constructor and Description |
|---|
InvocationArg(Instance instance) |
InvocationArg(String className,
Instance instance) |
| Modifier and Type | Method and Description |
|---|---|
static Instance |
NativeInstantiationImpl.createForStatic(String className) |
static Instance |
NativeInstantiationImpl.createJavaArray(String className,
InvocationArg... args) |
static Instance |
NativeInstantiationImpl.createJavaList(String className,
InvocationArg... args) |
static Instance |
NativeInstantiationImpl.instantiate(String className,
InvocationArg... args) |
| Modifier and Type | Class and Description |
|---|---|
class |
EagerJsonInvocationImpl<T> |
class |
JsonInvocationImpl<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> Instance<T> |
InstanceGenerator.create(Class clazz) |
static <T> Instance<T> |
InstanceGenerator.create(T instance,
Class clazz) |
static <T> Instance<T> |
InstanceGenerator.create(T instance,
Class<T> clazz,
List<Type> classGenTypes) |
Instance |
EagerJsonInvocationImpl.field(String methodName) |
Instance |
JsonInvocationImpl.field(String fieldName) |
Instance |
EagerJsonInvocationImpl.invoke(String methodName,
InvocationArg... arg) |
Instance |
JsonInvocationImpl.invoke(String methodName,
InvocationArg... args) |
Instance |
EagerJsonInvocationImpl.invokeStatic(String methodName,
InvocationArg... arg) |
Instance |
JsonInvocationImpl.invokeStatic(String methodName,
InvocationArg... args) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Instance<T> |
Java2RustUtils.createInstance(T obj) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Java2RustUtils.getObjectCasted(Instance instance) |
Copyright © 2020. All rights reserved.